[antlr-interest] Return Values and Element Labels ?= S-Attribute Grammar
qn
qn.666 at gmx.net
Sat Aug 11 20:01:43 PDT 2012
Hi, as far as I understand, using return values and element labels in
Antlr are sufficient to build an AST. e.g.
r[int a, String b] returns [int c, String d] : a='class' b=ID ...
{$c=$a; $d=$b;}
What's the name of this kind of extension to eBNF? Is this called a
S-Attribute Grammar?
-stefan
P.S. is there newsgroup access to this mailinglist?
More information about the antlr-interest
mailing list