Open GiovanH opened 3 years ago
This can temporarily be worked around by replacing operators that require parentheticalization with their dunder builtin function equivalents:
This code (which is correct, but p8tool cannot parse)
somefunction((table1 - table2):unpack())
becomes
somefunction(table1:__sub(table2):unpack())
The error message for all of these cases is always AssertionError, thrown at
self._tokens[self._pos].matches(lexer.TokSymbol(keyword))
inlua.py
.Parenthesized functions AssertionError (expected
)
got(
):Correctly parsed:
Parenthesized tables AssertionError (expected
)
got:
): (note: tables have __sub methods defined in metatables)Correctly parsed: