Community
Participate
Working Groups
Unary minus is stripped from the code that's output by ast_to_src. Code such as "literal":len() can be produced which Lua considers invalid (the literal needs to be wrapped in parens). This pull request: https://github.com/fab13n/metalua/pull/30 contains fixes that allow ast_to_src to produce valid Lua code for all examples I used it on so far. Please take a look. Thanks in advance!