Home | History | Annotate | Download | only in tests
      1 lexer grammar t011lexer;
      2 options {
      3   language = Python;
      4 }
      5 
      6 IDENTIFIER: 
      7         ('a'..'z'|'A'..'Z'|'_') 
      8         ('a'..'z'
      9         |'A'..'Z'
     10         |'0'..'9'
     11         |'_'
     12             { 
     13               print "Underscore" 
     14               print "foo"
     15             }
     16         )*
     17     ;
     18 
     19 WS: (' ' | '\n')+;
     20