From 18ec82b54deb9be67a9c541bf69fca0ac020fe9b Mon Sep 17 00:00:00 2001 From: bringert Date: Tue, 5 Dec 2006 22:10:28 +0000 Subject: Got GFCC to JavaScript compilation working. Variants are still printed in a weird way. --- src/GF/JavaScript/LexJS.x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GF/JavaScript/LexJS.x') 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 -- cgit v1.2.3