ANTLR supports rule labels. We can use them by the following way:
For multiple elements we can use the following syntax with += operator:
But If we wil use a usual = operator with multiple elements:
t1 rule will point on the last element of a+ sequence. Should we generate a error in this case or t1 must point on array as in second case?