blob: f5790b7b35a989c9bd17332c32a37365b827645d [file] [log] [blame]
// Lexer grammar using synpreds
lexer grammar t051lexer;
options {
language=Cpp;
}
@lexer::includes
{
#include "UserTestTraits.hpp"
}
@lexer::namespace
{ Antlr3Test }
fragment
POINT
: '.'
;
NUMBER
: ( ( NUM POINT NUM ) => NUM POINT NUM
| POINT NUM
| NUM
)
;
fragment
NUM
: '0' .. '9' ( '0' .. '9' )*
;