Subj : Re: Question to SpiderMonkey 's developers about scaner/parser To : netscape.public.mozilla.jseng From : "Braden McDaniel" Date : Mon Aug 11 2003 05:35 pm "David Bradley" wrote in message news:lBSZa.53572$hc.18524@fe3.columbus.rr.com... > Lyalin Iliya wrote: > > >>I just wonder why it was important to ask now. > > > > Because I will write JavaScript parser(with scaner) for my company. > > So I should choose between yacc-generated or hand-made. > > We don't need multiplatform support. > > Can you advice the best variant ? > > Given Brendan's recommendation for a recursive decent parser you might > want to check out http://spirit.sourceforge.net/. I've just started > looking at it myself, so not sure how polished, robust, or efficient it is. Spirit is a remarkable piece of work. It can have a steep learning curve, though; especially if one doesn't have a firm handle on C++ templates. But it has the distinct advantage of having no code generation step. Another option worth consideration is ANTLR . For anyone familiar with the basics of BNFs, it should be quite easy to pick up. In particular, error handling is very straightforward. Braden .