On Monday September 6 2010, Per Bothner wrote:
> On 09/06/2010 06:49 AM, Attila Szegedi wrote:
> > parsing is hard (well, unless your language is LISP). You'll end up
> > wasting lot of time on debugging your parser. Worse, if later
> > you'll want to extend your grammar, you'll likely realize that too
> > is hard in a handwritten parser as you'll have to modify a lot of
> > it. Parser generators exist for a reason; they do a tremendous
> > amount of mundane work instead of you. I would never write a
> > lexer/parser by hand, unless the goal is to amuse myself with
> > exactly that.
>
> As an old curmudgeon, I still prefer a hard-written recursive-descent
> parser.

In that case, I'd go with a combinator parser approach such as Scala's 
combinator parser library. (Now with Packrat Parsing!)


> ...
> --
>       --Per Bothner


Randall Schulz

-- 
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to