[antlr-interest] minor issue with comments...
Robin Debreuil
robin at debreuil.com
Mon Mar 1 15:21:23 PST 2004
Ok, this may be the most minor issue alive today, but if you put comments on
multiline code statements antlr doesn't like it. As in:
local_variable_declaration!
: tp: type
lvd: local_variable_declarators
{ #local_variable_declaration =
#( ([VariableDeclStmt]),
([TypeRef], tp),
([ModifierAttributes]), // comments not allowed here
lvd
);
}
;
I can understand why it is like that looking at the gen'd code, just it is
sometimes useful to have a comment there - in this case to explain why a
node is created for no seemingly good reason. Maybe there is some form of
'grammar only' comments I'm missing?
Anyway, not a buring issue obviously, just thought I'd mention it in case it
hasn't been noticed...
Cheers,
Robin
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