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.
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.