1// Lexer grammar using synpreds 2lexer grammar t051lexer; 3 4options { 5 language=Cpp; 6} 7 8@lexer::includes 9{ 10#include "UserTestTraits.hpp" 11} 12@lexer::namespace 13{ Antlr3Test } 14 15fragment 16POINT 17 : '.' 18 ; 19NUMBER 20 : ( ( NUM POINT NUM ) => NUM POINT NUM 21 | POINT NUM 22 | NUM 23 ) 24 ; 25fragment 26NUM 27 : '0' .. '9' ( '0' .. '9' )* 28 ; 29