[Haskell-cafe] Parser left recursion

Roman Cheplyaka roma at ro-che.info
Wed Feb 20 12:30:20 CET 2013


* Tillmann Rendel <rendel at informatik.uni-marburg.de> [2013-02-20 09:59:47+0100]
> One way to fix this problem is to refactor the grammar in order to
> avoid left recursion. So let's distinguish "expressions that can
> start with expressions" and "expressions that cannot start with
> expressions":
> 
> [...]
>
> PS. Try adding multiplication to your grammar. You will need a
> similar trick to get the priorities right.

And then try adding subtraction ;-)

Roman



More information about the Haskell-Cafe mailing list