1grammar t052importM5; 2options { 3 language=JavaScript; 4} 5import t052importS5, t052importT5; 6s : x y ; // matches AA, which should be "aa" 7B : 'b' ; // another order: B, A, C 8A : 'a' ; 9C : 'c' ; 10WS : (' '|'\n') {this.skip();} ; 11