This is how Groovy started... no proper grammar and it was a freak'en mess to clean up BNF isn't that difficult... in fact it's simpler than rolling your own.
Regards, Kirk On Sep 6, 2010, at 4:20 PM, 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. > > Regards > > -- > 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. > -- 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.
