summaryrefslogtreecommitdiffstats
path: root/util/lexgen/lexgen.lexgen
blob: 33efb8b39b51a41559a3a8ddb5802a3a1f6f6dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Options]
case-sensitive
classname = RegExpTokenizer

[Code Generator Options]
TokenPrefix = RE2NFA::

[Macros]
Escape = \\.{1}

[Tokens]
TOK_QUOTED_STRING = \"[^\"]*\"
TOK_STRING = [^\{\}\(\)\,\*\|\?\.\+\[]|{Escape}
TOK_SEQUENCE = \[([^\]]|(\\\]))*\]
TOK_LBRACE = \{
TOK_RBRACE = \}
TOK_LPAREN = \(
TOK_RPAREN = \)
TOK_COMMA = \,
TOK_STAR = \*
TOK_OR = \|
TOK_QUESTION = \?
TOK_DOT = \.
TOK_PLUS = \+