1lexer grammar t011lexer; 2options { 3 language =Cpp; 4} 5 6@lexer::includes 7{ 8#include "UserTestTraits.hpp" 9#include <iostream> 10} 11@lexer::namespace 12{ Antlr3Test } 13 14IDENTIFIER: 15 ('a'..'z'|'A'..'Z'|'_') 16 ('a'..'z' 17 |'A'..'Z' 18 |'0'..'9' 19 |'_' 20 { 21 std::cout << "Underscore"; 22 std::cout << "foo"; 23 } 24 )* 25 ; 26 27WS: (' ' | '\n')+; 28