[antlr-interest] just added a "lexers, parser integration" blog

John D. Mitchell johnm-antlr at non.net
Sun Nov 7 11:00:39 PST 2004


>>>>> "Terence" == Terence Parr <parrt at cs.usfca.edu> writes:
[...]

> I've started formalizing ideas on how the lexers work in ANTLR 3 (though
> I have a prototyped implementation already) and how the parser / lexer
> interact.

> http://www.antlr.org/blog/antlr3/lexical.tml

"# the parser grammar (or combined grammar) can specify the extra fields
for a token, which results in a grammar specific token. Tokens may also
have a generate attributes table for dynamically setting attributes, thus,
avoiding creation of a million token subclasses. "

boo boo: "a generate attributes table" should be "a general attributes
table".


"Lexer rule return values"

I'm uncomfortable with how complicated that is.

For example, if the "protected" rules are only implicitly known by the
reference to them from the parser, how does that allow for reusing lexers
with different grammars if we have to specify the return type?

Have fun,
	John


 
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