Hi Terence,
Thanks for the quick response!!!
> Notice the ? is in the tree construction not the matching.
Ok, I hadn't noticed the difference. Yes, that might be exactly the
solution to my problem --- thanks!!
Dave
>>> classDeclaration
>>> : 'class' Identifier (typeParameters)?
>>> ('extends' type)? ('implements' typeList)?
>>> classBody
>>> ;
>>> ...
>>> classBody
>>> : '{' classBodyDeclaration* '}'
>>> ;
>>> ...
>>> classBodyDeclaration
>>> : ';'
>>> | ... [other productions]
>>> ;
>
> I don't understand the issue. Don't alter the matching, just add ? to
> the ast constr.
> Ter
--
Lecturer in Computer Science,
School of Mathematics, Statistics and Computer Science,
Victoria University of Wellington,
PO Box 600,
Wellington,
New Zealand.
Office: Cotton 231
Telephone: +64 (0)4 463 5833
URL: http://www.mcs.vuw.ac.nz/~djp
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---