2
The idea to handle mix-fix operators is to
4
- parse applications as lists of expressions. For instance:
6
1 + 2 * 3 will be parsed as [1,+,2,*,3]
8
We then generate a parser for the operators in scope and try to parse the
9
application. In this example the grammar would look something like this: