Home | History | Annotate | Download | only in tests
      1 lexer grammar t038lexerRuleLabel;
      2 options {
      3   language = Python;
      4 }
      5 
      6 A: 'a'..'z' WS '0'..'9'
      7         {
      8             print $WS
      9             print $WS.type
     10             print $WS.line
     11             print $WS.pos
     12             print $WS.channel
     13             print $WS.index
     14             print $WS.text
     15         }
     16     ;
     17 
     18 fragment WS  :
     19         (   ' '
     20         |   '\t'
     21         |  ( '\n'
     22             |	'\r\n'
     23             |	'\r'
     24             )
     25         )+
     26         { $channel = HIDDEN }
     27     ;    
     28 
     29