Open zimmski opened 10 years ago
Have a look at
Have a look at
We do not want a PEG (Parsing Expression grammar) as described here https://en.wikipedia.org/wiki/Parsing_expression_grammar (although Tavor implements MOST of the described features) because by default this uses a recursive descent parser parser and as described it cannot handle +(a)a as it is always greedy and does not backtrack.
Have a look at
The current internal parser is just a quick hack to parse simple constructs. A better parser is needed to parse something like this:
The current version just eats all As via the repetition. We need a look-ahead parser or a back-tracking parser to really parse EVERYTHING.