You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be better if syntatic symbols also worked with CamelCase.
Motivation: I like to use CamelCase in my AST node tags because this permits to use reserved keywords in lua like DoFunctionBreak etc in the code. For example I use a visitor pattern and declare visitor pattern to traverse my AST nodes like visitors.Do and visitors.Function, this is not possible with just lowercase then instead I've to use visitors["function"] = function(... due to the reserved keyword, but then I lose traceback readability from lua because I've to use an anonymous function.
The text was updated successfully, but these errors were encountered:
Would be better if syntatic symbols also worked with
CamelCase
.Motivation: I like to use
CamelCase
in my AST node tags because this permits to use reserved keywords in lua likeDo
Function
Break
etc in the code. For example I use a visitor pattern and declare visitor pattern to traverse my AST nodes likevisitors.Do
andvisitors.Function
, this is not possible with just lowercase then instead I've to usevisitors["function"] = function(...
due to the reserved keyword, but then I lose traceback readability from lua because I've to use an anonymous function.The text was updated successfully, but these errors were encountered: