gustavoaca1997 / Caribay

A PEG Parser Generator with Semi-Automatic Error Recovery based on LPeg(Label)
MIT License
19 stars 0 forks source link

Permit syntactic symbols with CamelCase #9

Open edubart opened 4 years ago

edubart commented 4 years ago

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 Do Function Break 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.

gustavoaca1997 commented 4 years ago

Hi @edubart ! I'll work with the three issues you posted as soon as possible. Sorry for the delay answer