[antlr-interest] grammar of EBNF

lin q linq936 at gmail.com
Sun Nov 4 19:15:54 PST 2012


Hi,

I need to work out a parser which parses a text file describing some domain
specific command in EBNF format. To be clear, my input is an EBNF grammar
file, it is a command script following EBNF syntax.

I need to program in C++. ANTLR is implemented in Java, but I think I can
reference its implementation how to parse an EBNF grammar file. Here are my
questions:

1. Does ANTLR uses a grammar to describe EBNF, so this is a EBNF of EBNF
grammar. Seems a logical method to implement ANTLR. If so, could you point
me where I can find this grammar file?

2. If ANTLR does not use this "bootstrap" grammar file, which source file
has the parsing code to parse lexer/parser grammars?

Thanks!


More information about the antlr-interest mailing list