I have a grammar file called turtle.g4 which defines the behavior of Turtle files. It contains a rule regarding IRIs.
iri: IRIREF | PrefixedName;
I have a separate java static method (say ClassStatic.methodx)I need to call every time this rule is invoked. Is is possible to write it inside the grammar file along with the rule, using the ->
operator?