summaryrefslogtreecommitdiff
path: root/src/GF/Compile/GFCCtoJS.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-10-21 14:30:36 +0000
committerkrasimir <krasimir@chalmers.se>2008-10-21 14:30:36 +0000
commit0606de738e0d934b45f39f1bbe34ed1defde478a (patch)
treef75a8c0f06e4c750b51ba5048087ff56629d9e11 /src/GF/Compile/GFCCtoJS.hs
parent6633ae71f1be152bffad04004570bb4c3d348a81 (diff)
efficient and nicer implementation for literal categories
Diffstat (limited to 'src/GF/Compile/GFCCtoJS.hs')
-rw-r--r--src/GF/Compile/GFCCtoJS.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/GF/Compile/GFCCtoJS.hs b/src/GF/Compile/GFCCtoJS.hs
index 2c3b762da..c8e4e0e4b 100644
--- a/src/GF/Compile/GFCCtoJS.hs
+++ b/src/GF/Compile/GFCCtoJS.hs
@@ -128,6 +128,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]
new :: String -> [JS.Expr] -> JS.Expr