blob: 2446e48f0cf4ce6286b32a42ca6f8c7921cb1e85 [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)
Taewoo Kima12d8cd2015-03-04 13:47:08 -080016INT64_CONS = string(int)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000017FLOAT_CONS = string(float)
18DOUBLE_CONS = string(double)
19DATE_CONS = string(date)
20DATETIME_CONS = string(datetime)
21DURATION_CONS = string(duration)
22STRING_CONS = string(string)
JavierJia9d3c4a92014-11-20 13:09:58 -080023HEX_CONS = string(hex)
24BASE64_CONS = string(base64)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000025POINT_CONS = string(point)
26POINT3D_CONS = string(point3d)
27LINE_CONS = string(line)
28POLYGON_CONS = string(polygon)
29RECTANGLE_CONS = string(rectangle)
30CIRCLE_CONS = string(circle)
31TIME_CONS = string(time)
jarodwen4e6c4712013-03-06 00:41:52 +000032INTERVAL_TIME_CONS = string(interval-time)
33INTERVAL_DATE_CONS = string(interval-date)
34INTERVAL_DATETIME_CONS = string(interval-datetime)
JArodccac1342013-05-15 11:00:44 -070035YEAR_MONTH_DURATION_CONS = string(year-month-duration)
Taewoo Kim83259462014-09-09 18:13:41 -070036DAY_TIME_DURATION_CONS = string(day-time-duration)
37UUID_CONS = string(uuid)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000038
39NULL_LITERAL = string(null)
40TRUE_LITERAL = string(true)
41FALSE_LITERAL = string(false)
42
43CONSTRUCTOR_OPEN = char(()
44CONSTRUCTOR_CLOSE = char())
45START_RECORD = char({)
46END_RECORD = char(})
47COMMA = char(\,)
48COLON = char(:)
49START_ORDERED_LIST = char([)
50END_ORDERED_LIST = char(])
51START_UNORDERED_LIST = string({{)
ogeidixb9d2cf82013-10-12 22:47:01 +010052# END_UNORDERED_LIST = }} is recognized as a double END_RECORD token
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000053
54STRING_LITERAL = char("), anythingUntil(")
55
56INT_LITERAL = signOrNothing(), digitSequence()
57INT8_LITERAL = token(INT_LITERAL), string(i8)
58INT16_LITERAL = token(INT_LITERAL), string(i16)
59INT32_LITERAL = token(INT_LITERAL), string(i32)
60INT64_LITERAL = token(INT_LITERAL), string(i64)
61
62@EXPONENT = caseInsensitiveChar(e), signOrNothing(), digitSequence()
63
64DOUBLE_LITERAL = signOrNothing(), char(.), digitSequence()
65DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence()
66DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence(), token(@EXPONENT)
67DOUBLE_LITERAL = signOrNothing(), digitSequence(), token(@EXPONENT)
68
69FLOAT_LITERAL = token(DOUBLE_LITERAL), caseInsensitiveChar(f)