2 ms·
Let me guess, you're stuck fighting yacc and shift-reduce conflicts? I find writing your own parser to be much more instructive and a better way to understand
by PeCaN 11y ago
Let me guess, you're stuck fighting yacc and shift-reduce conflicts?
I find writing your own parser to be much more instructive and a better way to understand why parser generators work the way they do.
Alternatively you can use a PEG generator such as peg/leg[1] and your grammar will more or less work (until it resolves an ambiguity in some way you didn't expect, anyway).
1: http://piumarta.com/software/peg/ http://piumarta.com/software/peg/