1
0
forked from GitHub/gf-core

Generate JavaScript type annotator. Use lindef in JavaScript.

This commit is contained in:
bringert
2006-12-21 00:01:45 +00:00
parent 5455046dd8
commit e8b8185e04
8 changed files with 171 additions and 99 deletions

View File

@@ -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