[antlr-interest] C# example of "lexical filter mode" ??
John Pool
j.pool at ision.nl
Thu Feb 18 10:52:24 PST 2010
In The Definitive ANTLR Reference, at page 113 there is an example of a
lexer grammar, with at the end of the section the remark 'Lexical filter
mode is generally not used with a parser because the lexer yields an
incomplete stream of tokens.'
I declared the fuzzy parser as follows:
FuzzyParser lexer = new FuzzyParser (new ANTLRFileStream (sourceFileName));
// derives from Lexer class
Question: how do I 'execute' such a grammar lexer in C# without feeding it
into a parser?
I tried downloading http://www.antlr.org/download/examples-v3.tar.gz, as
suggested in the book, but that URL won't open.
Regards, John Pool
More information about the antlr-interest
mailing list