News for hackers. Stuff that matters.
Re:How I wrote a self-hosting C compiler in 40 days by PeCaN on Tuesday December 15, 2015 @12:30AM (#10736115)
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/

There are no comments on this comment yet.