Re:Scala Considered Harmful For Large Projects?
by munificent on Thursday February 17, 2011 @04:36PM
(#2232974)
Is there a reason you didn't just handcode a recursive descent parser?
[ Parent
| on HN ]
Re:Scala Considered Harmful For Large Projects?
by scott_s on Thursday February 17, 2011 @04:45PM
(#2233007)
Yes. It's a waste of time. Why should I hand-code a parser for C when it's a solved problem? Note that the source code I linked to calls into an already existing Spirit grammar for C (which I made some modifications to, mainly so I could get more information back from the parse tree).
Hand coding a parser is generally not a good use of your time. There are many tools available to generate a parser based on a BNF grammar. I used my project as an opportunity to learn one of them.