12 February 2009

Parse

Coincidentally (after reading about the NL plugin for Firefox) came across a year-old article in some programming rag at work describing the ins-and-outs of parsing C with lexx/yacc. You couldn't pay me enough to write a C parser (unless, of course, you're a potential employer reading this, in that case I'd love to write a C parser (but I'd seriously question why you need one)). What with the wacky declarations and struct tags. Despite the clear-yet-recondite rules for visually parsing declarations, the stack probably gets pretty hairy.

[ posted by sstrader on 12 February 2009 at 9:51:46 AM in Programming ]