News for hackers. Stuff that matters.
Re:Join the Compiler Creation Club by mcpherrinm on Monday November 25, 2013 @02:39PM (#6796371)
Writing a parser isn't a terribly interesting or difficult part of writing a compiler. You can describe a simple one in a page of pseudocode. If you really are interested in writing a compiler, I wouldn't get hung up on this point.

If you want more depth, you probably want to pick up a compiler textbook. I liked "Modern Compiler Implementation" (I've used both the C and ML versions) in my undergrad.

Re:Join the Compiler Creation Club by mcpherrinm on Tuesday November 26, 2013 @02:18PM (#6803483)
I've been thinking about what I've said in this post and I want to reword slightly. Writing a parser can be very interesting, and there's a lot of neat techniques, and since we're talking about learning here and not making production compilers, it's certainly a worthwhile endeavor.

What I really mean to say is that your parser doesn't have a lot of effect on the rest of your compiler design. In the end, it's a function that takes input text to an AST. You can go back and replace a YACC generated one later, if you want to know more.

Of course if you choose a simple to parse input language (like lisp) then you can write a simple handwritten parser off the bat.

Re:Join the Compiler Creation Club by chrisdotcode on Monday November 25, 2013 @02:43PM (#6796397)
Thank you for the recommendation!