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:
parent
6d9c3dd403
commit
5d9af414fa
5 changed files with 26 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue