[antlr-interest] Re: DFA as lexer for antlr

lgcraymer lgc at mail1.jpl.nasa.gov
Fri May 7 23:15:14 PDT 2004


It should be.  Basically, you need to implement a lexer that
implements TokenStream.  TokenStreams have a single method,
nextToken(), which returns a Token.  That should be doable with JLex
or the equivalent--try it and let us know how it turns out.

--Loring

--- In antlr-interest at yahoogroups.com, "bugbuster13579"
<bugbuster13579 at y...> wrote:
> Hallo,
> 
> is it possible to use a DFA as lexer for an antlr parser?
> The grammar I'm trying to lex would be a lot easier to define.
> 
> Stephan



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list