unexpected symbol 287 (ğ) when evaluating expression #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In normal Lua, the interpreter will evaluate an expression:
In LuaJ, evaluating a bare expression like
1 + 1results in a LuaError with this message:unexpected symbol 287 (ğ). This happens whether I'm loading the expression using the Java API or I'm running LuaJ as an interactive REPL.This is clearly a bug, as there's no such character in the input.
In LexState.java, 287 is the integer code for
TK_NUMBER. This error seems to indicate that the compiler is looking for more input, and is (by default at least) expecting to see a number. The error is thrown in LexState.java in theprimaryexp()method.The script
mytab = {results in a similar error, withunexpected symbol 286. Symbol 286 is TK_EOS, meaning end of string.Fixed