1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 17:19:31 +00:00

[internal] ; operators now build a block instead of function call

This commit is contained in:
Étienne Fildadut 2024-01-17 14:07:14 +01:00
parent 6d9c3dd403
commit 5d9af414fa
5 changed files with 26 additions and 13 deletions

View file

@ -39,11 +39,9 @@ local common = {
{ "%", 11 },
},
suffixes = {
{ ";", 1 },
{ "!", 12 }
},
infixes = {
{ ";", 1 },
{ "#", 2 }, { "->", 2 },
{ "=", 3 },
{ "&", 5 }, { "|", 5 },
@ -58,6 +56,8 @@ local common = {
},
-- list of all operators and their priority
operator_priority = {
["_;"] = 1,
["_;_"] = 1,
[";_"] = 1,
["$_"] = 2,
["_,_"] = 2,