blob: b0ca26f387487d4895627f96420ac5bf6b2beed1 [file] [log] [blame]
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +00001# LEXER GENERATOR configuration file
2# ---------------------------------------
3# Place *first* the generic configuration
4# then list your grammar.
5
6PACKAGE: edu.uci.ics.asterix.runtime.operators.file.adm
7LEXER_NAME: AdmLexer
8
9TOKENS:
10
11BOOLEAN_CONS = string(boolean)
12INT8_CONS = string(int8)
13INT16_CONS = string(int16)
14INT32_CONS = string(int32)
15INT64_CONS = string(int64)
16FLOAT_CONS = string(float)
17DOUBLE_CONS = string(double)
18DATE_CONS = string(date)
19DATETIME_CONS = string(datetime)
20DURATION_CONS = string(duration)
21STRING_CONS = string(string)
JavierJia9d3c4a92014-11-20 13:09:58 -080022HEX_CONS = string(hex)
23BASE64_CONS = string(base64)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000024POINT_CONS = string(point)
25POINT3D_CONS = string(point3d)
26LINE_CONS = string(line)
27POLYGON_CONS = string(polygon)
28RECTANGLE_CONS = string(rectangle)
29CIRCLE_CONS = string(circle)
30TIME_CONS = string(time)
jarodwen4e6c4712013-03-06 00:41:52 +000031INTERVAL_TIME_CONS = string(interval-time)
32INTERVAL_DATE_CONS = string(interval-date)
33INTERVAL_DATETIME_CONS = string(interval-datetime)
JArodccac1342013-05-15 11:00:44 -070034YEAR_MONTH_DURATION_CONS = string(year-month-duration)
Taewoo Kim83259462014-09-09 18:13:41 -070035DAY_TIME_DURATION_CONS = string(day-time-duration)
36UUID_CONS = string(uuid)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000037
38NULL_LITERAL = string(null)
39TRUE_LITERAL = string(true)
40FALSE_LITERAL = string(false)
41
42CONSTRUCTOR_OPEN = char(()
43CONSTRUCTOR_CLOSE = char())
44START_RECORD = char({)
45END_RECORD = char(})
46COMMA = char(\,)
47COLON = char(:)
48START_ORDERED_LIST = char([)
49END_ORDERED_LIST = char(])
50START_UNORDERED_LIST = string({{)
ogeidixb9d2cf82013-10-12 22:47:01 +010051# END_UNORDERED_LIST = }} is recognized as a double END_RECORD token
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000052
53STRING_LITERAL = char("), anythingUntil(")
54
55INT_LITERAL = signOrNothing(), digitSequence()
56INT8_LITERAL = token(INT_LITERAL), string(i8)
57INT16_LITERAL = token(INT_LITERAL), string(i16)
58INT32_LITERAL = token(INT_LITERAL), string(i32)
59INT64_LITERAL = token(INT_LITERAL), string(i64)
60
61@EXPONENT = caseInsensitiveChar(e), signOrNothing(), digitSequence()
62
63DOUBLE_LITERAL = signOrNothing(), char(.), digitSequence()
64DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence()
65DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence(), token(@EXPONENT)
66DOUBLE_LITERAL = signOrNothing(), digitSequence(), token(@EXPONENT)
67
68FLOAT_LITERAL = token(DOUBLE_LITERAL), caseInsensitiveChar(f)