diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 23:33:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-17 23:33:56 -0700 |
| commit | af441330ff7cfdc466281ce135ca7231ec54c499 (patch) | |
| tree | d046e1ee824fdb9828fdb99af31e9fc17087e6e4 /parser.moon | |
| parent | ceb29321edef05b8416a72a1f396c683f0c6c831 (diff) | |
Improving nomsu codegen.
Diffstat (limited to 'parser.moon')
| -rw-r--r-- | parser.moon | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/parser.moon b/parser.moon index 886f4c4..993fd54 100644 --- a/parser.moon +++ b/parser.moon @@ -139,6 +139,9 @@ Parser.parse = (nomsu_code, source=nil, version=nil)-> return tree Parser.is_operator = (s)-> - return not not (NOMSU_DEFS.operator_char^1)\match(s) + return not not (NOMSU_DEFS.operator_char^1 * -1)\match(s) + +Parser.is_identifier = (s)-> + return not not (NOMSU_DEFS.ident_char^1 * -1)\match(s) return Parser |
