You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
566 B
36 lines
566 B
lexer grammar t038lexerRuleLabel;
|
|
options {
|
|
language =Cpp;
|
|
}
|
|
|
|
@lexer::includes
|
|
{
|
|
#include "UserTestTraits.hpp"
|
|
}
|
|
@lexer::namespace
|
|
{ Antlr3Test }
|
|
|
|
A: 'a'..'z' WS '0'..'9'
|
|
{
|
|
print($WS)
|
|
print($WS.type)
|
|
print($WS.line)
|
|
print($WS.pos)
|
|
print($WS.channel)
|
|
print($WS.index)
|
|
print($WS.text)
|
|
}
|
|
;
|
|
|
|
fragment WS :
|
|
( ' '
|
|
| '\t'
|
|
| ( '\n'
|
|
| '\r\n'
|
|
| '\r'
|
|
)
|
|
)+
|
|
{ $channel = HIDDEN }
|
|
;
|
|
|