Hello everyone!!

I am currently writing the tree grammar from my parse one, and I have 
discovered that I get errors if I use structures like these:

a: ^(A1 b+)
;

b: ^(B1 b  ^(ACTION c)*)
;

c: whatever


But, it works if I change the previous tree grammar like this:

a: ^(A1 b+)
;

b: ^(B1 b  b_sub*)
;

b_sub: ^(ACTION c)
;

c: whatever


The same happens each time that I use a modifier of multiplicity (?,*,+) 
for a whole parse tree. Why is it not allowed? How can I solve this?

Thanks in advance

Nieves

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.

Reply via email to