0

I am new to Antr. I recently discovered that there is the option for creating rule element labels dynamically like this:

variable 
    :   mainField = variableName ( '.' subFields += variableName )*                   
    ;

I am using c sharp. I can use context.mainField in my code without any problems but I cannot find our how can I access the subFields list. Only a _subFields Interface type shows up in intellisense.

0

1 Answer 1

0

_subFields is in fact the List that I was looking for. I was confused.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.