News for hackers. Stuff that matters.
Re:Want to Write a Compiler? Just Read These Two Papers. by perlgeek on Friday August 26, 2011 @05:22AM (#2927907)
I have read Crenshaw's series (the first one that is recommended), and found it eye-opening how easy it is to write simple parsers and compilers.

That said he does use some obscure assembly of which I hadn't heard before, so I'd really love to see an update to a more mainstream platform.

Re:Want to Write a Compiler? Just Read These Two Papers. by narag on Friday August 26, 2011 @06:03AM (#2927977)
IIRC there was a version of the code for x86.
Re:Want to Write a Compiler? Just Read These Two Papers. by telemachos on Friday August 26, 2011 @07:02AM (#2928067)
A bit of Googling found this blog post[1] which lists a number of Crenshaw-based variants.

Two other quick finds: a more readable pdf version of the Crenshaw tutorial itself[2], and "an x86 compiler written in Ruby"[3] made by following along in the Crenshaw tutorial.

[1] http://blog.spacesocket.com/2011/06/24/lets-build-a-compiler...

[2] http://www.stack.nl/~marcov/compiler.pdf

[3] https://github.com/samsonjs/compiler