Good day,
I have the following rewrite rule:
type_declaration_stmt
: label? declaration_type_spec ( (T_COMMA attr_spec )* T_COLON_COLON )?
entity_decl (T_COMMA entity_decl)* end_of_stmt
-> ^(T_TYPE_DECLARATION_STMT declaration_type_spec attr_spec*
entity_decl)+
;
and this is a piece of tree parser grammar:
type_declaration_stmt
: ^(T_TYPE_DECLARATION_STMT declaration_type_spec attr_spec*
entity_decl)
;
When I give "integer a, b, c" on the input, 3 sequential
T_TYPE_DECLARATION-trees are
generated. It's right.
BUT declaration_type_spec subtree isn't dublicated (only the root of
subtree).
Where is mistake?
thanks
--
Best regards,
Michael
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/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.