lin q
2012-12-08 01:18:33 UTC
Hi,
I need to capture such into grammar, there are 3 values, A, B and C, the
expected combinations are one of each, two of each and all three. Initially
I was thinking to use this grammar: A? B? C?, but this has a problem
because it allows that none of the three present. Different approach is to
list all the combinations in some way, but that does not scale well.
Any suggestion?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
I need to capture such into grammar, there are 3 values, A, B and C, the
expected combinations are one of each, two of each and all three. Initially
I was thinking to use this grammar: A? B? C?, but this has a problem
because it allows that none of the three present. Different approach is to
list all the combinations in some way, but that does not scale well.
Any suggestion?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address