transpiler icon indicating copy to clipboard operation
transpiler copied to clipboard

Lua `return`

Open zaoqi opened this issue 5 years ago • 0 comments

https://jarble.github.io/transpiler/javascript/js_transpiler/test_parser.html#%7B%22inputText%22%3A%22function%20f(x%2C%20y)%5Cn%20%20%20%20if%20x%20%3D%3D%20y%20then%5Cn%20%20%20%20%20%20%20%20return%5Cn%20%20%20%20end%5Cnend%22%2C%22inputLang%22%3A%22lua%22%2C%22outputLang%22%3A%22java%22%7D

Error: Parse error on line 3:
...        return    endend
---------------------^
Expecting 'IDENTIFIER', '(', 'function', '-', 'not', '{', 'NUMBER', 'STRING_LITERAL', got 'end' lua_parser.js:248:21

https://github.com/jarble/transpiler/issues/17

zaoqi avatar May 19 '19 07:05 zaoqi