Search code examples
c#antlrantlrworks

ANTLR grammar tutorials


Possible Duplicate:
ANTLR 3.3 C# Tutorials?

I want to create grammar for C# application, but I don't know anything about ANTLR. Does anybody know any good tutorials about defining rules, and building them into .cs files?


Solution

  • I think this one is the best book about ANTLR parser generator. I read this book, when i was writing my own MSIL compiler. You can also look at my compiler (it may be not working) for the .g grammar as an example.

    p.s.

    Official ANTLR project web-site share good samples about grammar rules and parser generating.