From 15fd1d590a70be3af1b4e0a6488ebba795922342 Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 21 Dec 2006 00:01:45 +0000 Subject: Generate JavaScript type annotator. Use lindef in JavaScript. --- src/GF/JavaScript/PrintJS.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/GF/JavaScript/PrintJS.hs') diff --git a/src/GF/JavaScript/PrintJS.hs b/src/GF/JavaScript/PrintJS.hs index af9504c74..16883682f 100644 --- a/src/GF/JavaScript/PrintJS.hs +++ b/src/GF/JavaScript/PrintJS.hs @@ -145,6 +145,7 @@ instance Print Expr where ENull -> prPrec i 16 (concatD [doc (showString "null")]) EThis -> prPrec i 16 (concatD [doc (showString "this")]) EFun ids stmts -> prPrec i 16 (concatD [doc (showString "function") , doc (showString "(") , prt 0 ids , doc (showString ")") , doc (showString "{") , prt 0 stmts , doc (showString "}")]) + EArray exprs -> prPrec i 16 (concatD [doc (showString "[") , prt 0 exprs , doc (showString "]")]) ESeq exprs -> prPrec i 16 (concatD [doc (showString "(") , prt 0 exprs , doc (showString ")")]) prtList es = case es of -- cgit v1.2.3