• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1grammar t031emptyAlt;
2options {
3  language =Cpp;
4}
5
6@lexer::includes
7{
8#include "UserTestTraits.hpp"
9}
10@lexer::namespace
11{ Antlr3Test }
12
13@parser::includes {
14#include "UserTestTraits.hpp"
15}
16@parser::namespace
17{ Antlr3Test }
18
19r
20    : NAME
21        ( {self.cond}?=> WS+ NAME
22        |
23        )
24        EOF
25    ;
26
27NAME: ('a'..'z') ('a'..'z' | '0'..'9')+;
28NUMBER: ('0'..'9')+;
29WS: ' '+;
30