Improve java code generator.

This commit is contained in:
James Roseborough
2010-07-22 23:35:25 +00:00
parent 67216b17e1
commit 6bf647ff37
7 changed files with 27 additions and 18 deletions

View File

@@ -342,7 +342,7 @@ Exp SimpleExp():
<NIL> { return Exp.constant(LuaValue.NIL); }
| <TRUE> { return Exp.constant(LuaValue.TRUE); }
| <FALSE> { return Exp.constant(LuaValue.FALSE); }
| n=<NUMBER> { return Exp.constant(LuaValue.valueOf(Double.valueOf(n.image))); }
| n=<NUMBER> { return Exp.numberconstant(n.image); }
| s=Str() { return Exp.constant(s); }
| "..." { return Exp.varargs(); }
| tc=TableConstructor() { return Exp.tableconstructor(tc); }