summaryrefslogtreecommitdiff
path: root/src/GF/Compile/GFCCtoJS.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-06-16 11:56:08 +0000
committerkrasimir <krasimir@chalmers.se>2009-06-16 11:56:08 +0000
commit8bc8929c59d2bd6f28d5dab9c7a9ca8a1c23609e (patch)
tree84244e9cc3b969e86167b309538dfe08d7374630 /src/GF/Compile/GFCCtoJS.hs
parentb442cde3bd01fb935c215446097592510cf8e713 (diff)
completely phrase based parser and support for pre {} in PMCFG
Diffstat (limited to 'src/GF/Compile/GFCCtoJS.hs')
-rw-r--r--src/GF/Compile/GFCCtoJS.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/Compile/GFCCtoJS.hs b/src/GF/Compile/GFCCtoJS.hs
index 8ca321eaa..6a82d02d9 100644
--- a/src/GF/Compile/GFCCtoJS.hs
+++ b/src/GF/Compile/GFCCtoJS.hs
@@ -129,7 +129,7 @@ lins2js p ls = JS.EArray [JS.EArray [sym2js s | s <- Array.elems (sequences p Ar
sym2js :: FSymbol -> JS.Expr
sym2js (FSymCat n l) = new "ArgProj" [JS.EInt n, JS.EInt l]
sym2js (FSymLit n l) = new "ArgProj" [JS.EInt n, JS.EInt l]
-sym2js (FSymTok (KS t)) = new "Terminal" [JS.EStr t]
+sym2js (FSymKS [t]) = new "Terminal" [JS.EStr t]
new :: String -> [JS.Expr] -> JS.Expr
new f xs = JS.ENew (JS.Ident f) xs