diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 19:41:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 19:41:58 -0700 |
| commit | bccfe9d8e12ba024c745cd533f73987439c76499 (patch) | |
| tree | c2df6f49a9a6ddae962140848da02fd446b50d4b /lib/operators.nom | |
| parent | 56f014a4884d7df387ff2ffa34fa95f1cc8b1f16 (diff) | |
Changed tokenizing to treat symbols as their own things.
Diffstat (limited to 'lib/operators.nom')
| -rw-r--r-- | lib/operators.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/operators.nom b/lib/operators.nom index 13e6ce4..09bdbcd 100644 --- a/lib/operators.nom +++ b/lib/operators.nom @@ -29,7 +29,7 @@ compile [..] |end)(nomsu, vars) # Indexing: -compile [%obj's %key, %obj -> %key] to: "(\(%obj as lua))[\(%key as lua)]" +compile [%obj'%key, %obj's %key, %obj -> %key] to: "(\(%obj as lua))[\(%key as lua)]" # Variable assignment operator, and += type versions compile [%var = %val] to code: "\(%var as lua) = \(%val as lua);" @@ -90,7 +90,7 @@ lua block ".." # Chained compairsions (e.g. x < y <= z) are defined up to 3 operands lua block ".." |local max_operands = 3; - |for _,chainers in ipairs({{"<","<="},{">",">="}}) do; + |for _,chainers in ipairs({{"<","< ="},{">","> ="}}) do; | local function recurse(chainers, chain) # The 1-op versions are already more efficiently defined, and a 0-op version doesnt make sense | if #chain >= 2 then; |
