[antlr-interest] Parser Problem

Dennis Benzinger Dennis.Benzinger at gmx.net
Thu Nov 6 07:36:02 PST 2008


Am 06.11.2008 13:52, S, Shubha schrieb:
> Hi All,
> I am using ANTLR for first time, so need ur help on an issue.
> 
> I downloaded a open source parser which uses ANTLR. This parser fails to parse a term which is infact valid one.
> For ex: valid term is 'Protocols' but the parser is expecting only 'Protocol'.
> 
> I see that terms expected by parser is seen in a '*.g' file, if I modify in this, its not working as exepected.
> 
> Can anyone pls tel me where should I do the modification. Any file specific to ANTLR?
> [...]

ANTLR is not an interpreter for .g files. It's a kind of compiler for .g
files. ANTLR generates code out of them. So if you change something in a
.g file you have to execute ANTLR do generate the code and then compile
or run the new code.

HTH,
Dennis Benzinger


More information about the antlr-interest mailing list