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 7cceec0802
commit 15fd1d590a
7 changed files with 73 additions and 47 deletions

View File

@@ -122,6 +122,7 @@ Expr16 : Ident { EVar $1 }
| 'null' { ENull }
| 'this' { EThis }
| 'function' '(' ListIdent ')' '{' ListStmt '}' { EFun $3 (reverse $6) }
| '[' ListExpr ']' { EArray $2 }
| '(' Expr ',' ListExpr ')' { eseq1_ $2 $4 }
| '(' Expr ')' { $2 }