Well.... I usually don't write a proper grammar, if I'm using TDD.

I write the tests, and then implement the parser, step by step, recursive
descent parser.

I implemented some features of Go, in a .NET interpreter (not compiler),
using that approach:

http://ajlopez.wordpress.com/2009/12/28/channels-and-goroutines-in-ajsharp-part-1/
http://ajlopez.wordpress.com/2009/12/30/channels-and-goroutines-in-ajsharp-part-2/

and agents, distributed objects, functional values, futures.. without
writing the grammar. The parser, lexer and supporting AST were extended test
by test.

Modern languages has relative easy grammars. My guess: the "big work" is in
the compiler.

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


On Mon, Sep 6, 2010 at 11:56 AM, Dibyendu Majumdar
<[email protected]>wrote:

>
>
> On Sep 6, 3:49 pm, Kirk <[email protected]> wrote:
> > 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.
> >
>
> Hi, I am planning to define a proper grammer - started work on it
> already.
> But I don't want to wait until the whole language is defined before
> starting to code. So grammer, lexer, parser, compiler will all evolve
> side
> by side if that makes sense.
>
> 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]<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