When do we use ANTLR

You would need these dll’s if you are parsing any text at runtime using an antlr grammar.

Typically there are two steps.

1) run the java antlr parser over your .g files to generate a C# lexer, C# grammar and possibly C# tree walkers.

2) Build those files into your application. Those files will work in conjunction with the antlr.runtime dll, or antlr3.runtime dll if you’re using ANTLR version 3.

Your C# program can now parse text files using the grammar that you compiled in step 1.

Leave a Comment