Hi people!

Dibyendu, writing your own parser (and lexer, I guess) is a nice training
and experience. I would recommend you to use Test-Driven Development.

Angel "Java" Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

On Mon, Sep 6, 2010 at 11:28 AM, Randall R Schulz <[email protected]> wrote:

> On Monday September 6 2010, Dibyendu Majumdar wrote:
> > On Sep 6, 2:59 pm, Randall R Schulz <[email protected]> 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.
> > >
> > > Seconded.
> >
> > I agree with you both - fortunately the grammer of the new language
> > isn't that difficult - and therefore should not be too difficult to
> > write a parser for.
>
> Famous last words...
>
> Good luck.
>
>
> > Regards
>
>
> RRS
>
> --
> 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]<jvm-languages%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jvm-languages?hl=en.
>
>

-- 
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