|
|
|
|
|
by mrkeen
497 days ago
|
|
I appreciate the dismissal, but I stand by what I said. I used to think 'precedence was just for removing ambiguity', so I didn't pay attention to it. Then I discovered it was the key to structuring grammars to avoid left recursion, and everything changed for me. I've used it successfully in the past and I'll do so in the future. |
|
E.g., the precedence in these two grammars (for simple arithmetic expressions) is identical
but one recurses on the left side, and the other on the right.