• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1lexer grammar t025lexerRulePropertyRef;
2options {
3  language =Cpp;
4}
5
6@lexer::includes
7{
8#include "UserTestTraits.hpp"
9}
10@lexer::namespace
11{ Antlr3Test }
12
13@lexer::init {
14self.properties = []
15}
16
17IDENTIFIER:
18        ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
19        {
20self.properties.append(
21    ($text, $type, $line, $pos, $index, $channel, $start, $stop)
22)
23        }
24    ;
25WS: (' ' | '\n')+;
26