jarble / transpiler

A universal translator for programming languages
https://jarble.github.io/transpiler
MIT License
472 stars 44 forks source link

Lua `{["0"]=0}` #26

Open zaoqi opened 5 years ago

zaoqi commented 5 years ago

https://jarble.github.io/transpiler/javascript/js_transpiler/test_parser.html#%7B%22inputText%22%3A%22local%20a%3D%7B%5B%5C%220%5C%22%5D%3D0%7D%22%2C%22inputLang%22%3A%22lua%22%2C%22outputLang%22%3A%22java%22%7D

Error: Parse error on line 1:
local a={["0"]=0}
---------^
Expecting 'IDENTIFIER', '(', 'function', '-', 'not', '{', '}', 'NUMBER', 'STRING_LITERAL', got '[' lua_parser.js:248:21