I have a parser for language that looks like this:
[nodeType OPTIONAL STUFF]
There are a few node typed, such as "ask" and "set", so currently ask
and set
are defined as keywords. This causes problems in other parts of the parser.
Is there a way to define a token parser that accepts only tokens who contain specific text?