> Hello, > > DCC features a hand-written lexer and parser and does not rely on a > generator. Read Barry's comments here: > > http://stackoverflow.com/questions/199627/converting-c-source-to-c/201922#201922
Interesting. I wonder what parts of the grammar are not LALR(1) or a LR(1) compatible though. I can understand the argument that using a hand-written compiler will allow you to more easily extend the language, since it avoids the problem of maintaining consistent shift/reduce tables. In my own implementation, the non-terminals of the AST are represented as separate classes, which makes it very easy to perform any kind of recursive processing.
Mattias