[antlr-interest] Parsing a sequence of objects

C.P.T.de.Gouw at cwi.nl C.P.T.de.Gouw at cwi.nl
Fri Jan 29 00:19:18 PST 2010


> Given an attribute grammar (with probably only synthesized attributes),
> instead of parsing a sequence of terminal strings, I want to parse a
> sequence (array) of (Java) Objects.

I just noted an old antlr2 blog post, that I think describes exactly what I
want: http://www.antlr2.org/blog/antlr3/lexical.tml. The feature I'm
interested in is
"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."

Has this been added to antlr v3?


More information about the antlr-interest mailing list