While writing down my language's grammar I found an issue with not expressions and they cause the parser to parse things in an unexpected way.
find all letter = this
produces this AST structure:
FIND (all)
DEC (this)
LETTER
However
find all not letter = this
throws a parse error on the equal sign saying it was expecting a new search operation to start instead of continuing with the declaration
While writing down my language's grammar I found an issue with not expressions and they cause the parser to parse things in an unexpected way.
find all letter = this
produces this AST structure:However
find all not letter = this
throws a parse error on the equal sign saying it was expecting a new search operation to start instead of continuing with the declarationI would expect it to produce: