I encountered the same problem and the best solution I found so far

for literals:

numeric_literal
        :       INTEGER_LITERAL -> {%{$INTEGER_LITERAL.text}}
        |       DECIMAL_LITERAL -> {%{$DECIMAL_LITERAL.text}}
        |       FLOATING_POINT_LITERAL -> {%{$FLOATING_POINT_LITERAL.text}}
        ;

for rules:


function

        : castFunction -> {$castFunction.st}

        | trimFunction -> {$trimFunction.st}

        ...

        ;


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to