[antlr-interest] Re: dfa-based lexers versus top-down antlr lexers
Oliver Zeigermann
oliver at zeigermann.de
Wed Apr 30 02:08:08 PDT 2003
--- In antlr-interest at yahoogroups.com, Terence Parr <parrt at j...>
wrote:
> Concerning the interface between parser / lexer, yes: it's simple:
>
> interface TokenStream {
> public Token nextToken();
> }
>
> As long as you can answer nextToken(), you can feed an ANTLR
parser :)
When I tryed to feed ANTLR parsers from XML sources in my XPA
project I was absolutely amazed how easy it was: simply implementing
TokenStream. Works very well!
Oliver
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list