differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

Accepting 'throw' as variable name #61

Closed ChristianKleineidam closed 8 years ago

ChristianKleineidam commented 9 years ago

In python it's possible to call a variable throw. Unfortunately it's a reserved word in Javascript, so the code that calls a variable throw crashes. Given that the parser should get valid python code to run I suggest that it renames I valid python variables names like throw that are invalid Javascript variable names into throw1345 or something similar.

nwinter commented 8 years ago

Fixed with @basicer's new Esper interpreter.