[antlr-interest] ANTLR 3.1.2: Simplest action

Udo Weik WeikEngOff at aol.com
Wed Jul 13 12:57:29 PDT 2011


Hello,

I just want to access the attributes of INTEGER
and DIGIT - but how?

INTEGER: DIGIT+ { print( "L: (INTEGER): " ) } ;

fragment
DIGIT: '0'..'9' { print( "L: (DIGIT): " ) } ;


Thanks and greetings
Udo


More information about the antlr-interest mailing list