diff options
| author | bringert <bringert@cs.chalmers.se> | 2006-12-05 22:10:28 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2006-12-05 22:10:28 +0000 |
| commit | 18ec82b54deb9be67a9c541bf69fca0ac020fe9b (patch) | |
| tree | 0cdda01326b69edb3d5b8a7cc078c6f3fcdb767a /src/GF/JavaScript/LexJS.x | |
| parent | 3d68f22b95fcae256f05fb7a35815fd481b876a0 (diff) | |
Got GFCC to JavaScript compilation working. Variants are still printed in a weird way.
Diffstat (limited to 'src/GF/JavaScript/LexJS.x')
| -rw-r--r-- | src/GF/JavaScript/LexJS.x | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/JavaScript/LexJS.x b/src/GF/JavaScript/LexJS.x index 382092d6a..cdd03c12d 100644 --- a/src/GF/JavaScript/LexJS.x +++ b/src/GF/JavaScript/LexJS.x @@ -16,7 +16,7 @@ $i = [$l $d _ '] -- identifier character $u = [\0-\255] -- universal: any character @rsyms = -- symbols and non-identifier-like reserved words - \( | \) | \{ | \} | \, | \; | \. | \[ | \] + \( | \) | \{ | \} | \, | \; | \= | \. | \[ | \] :- @@ -77,7 +77,7 @@ eitherResIdent tv s = treeFind resWords | s > a = treeFind right | s == a = t -resWords = b "null" (b "function" (b "false" N N) (b "new" N N)) (b "this" (b "return" N N) (b "true" N N)) +resWords = b "return" (b "new" (b "function" (b "false" N N) N) (b "null" N N)) (b "true" (b "this" N N) (b "var" N N)) where b s = B s (TS s) unescapeInitTail :: String -> String |
