On Monday September 6 2010, Attila Szegedi wrote:
> On 2010.09.06., at 13:01, Dibyendu Majumdar wrote:
> > On Sep 6, 4:08 am, Randall R Schulz <[email protected]> wrote:
> >>> I am looking to implement a hand-coded lexer/parser for the
> >>> language.
> >>
> >> Why?
> >
> > Primarily because I am [not] up to speed with parser generators.

(Edit applied by RRS based on correction from DM.)


> Listen,
>
> 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.

Seconded.


> There, you can't say we didn't try to warn you :-)
>
> Attila.


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