blob: 06614d07c4e64b1c85da082b435992789716d921 [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)
22POINT_CONS = string(point)
23POINT3D_CONS = string(point3d)
24LINE_CONS = string(line)
25POLYGON_CONS = string(polygon)
26RECTANGLE_CONS = string(rectangle)
27CIRCLE_CONS = string(circle)
28TIME_CONS = string(time)
jarodwen4e6c4712013-03-06 00:41:52 +000029INTERVAL_TIME_CONS = string(interval-time)
30INTERVAL_DATE_CONS = string(interval-date)
31INTERVAL_DATETIME_CONS = string(interval-datetime)
JArodccac1342013-05-15 11:00:44 -070032YEAR_MONTH_DURATION_CONS = string(year-month-duration)
33DAY_TIME_DURATION_CONS = string(day-time-duration)
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000034
35NULL_LITERAL = string(null)
36TRUE_LITERAL = string(true)
37FALSE_LITERAL = string(false)
38
39CONSTRUCTOR_OPEN = char(()
40CONSTRUCTOR_CLOSE = char())
41START_RECORD = char({)
42END_RECORD = char(})
43COMMA = char(\,)
44COLON = char(:)
45START_ORDERED_LIST = char([)
46END_ORDERED_LIST = char(])
47START_UNORDERED_LIST = string({{)
ogeidixb9d2cf82013-10-12 22:47:01 +010048# END_UNORDERED_LIST = }} is recognized as a double END_RECORD token
diegogiorgini@gmail.com2de6d342013-02-16 02:41:45 +000049
50STRING_LITERAL = char("), anythingUntil(")
51
52INT_LITERAL = signOrNothing(), digitSequence()
53INT8_LITERAL = token(INT_LITERAL), string(i8)
54INT16_LITERAL = token(INT_LITERAL), string(i16)
55INT32_LITERAL = token(INT_LITERAL), string(i32)
56INT64_LITERAL = token(INT_LITERAL), string(i64)
57
58@EXPONENT = caseInsensitiveChar(e), signOrNothing(), digitSequence()
59
60DOUBLE_LITERAL = signOrNothing(), char(.), digitSequence()
61DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence()
62DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence(), token(@EXPONENT)
63DOUBLE_LITERAL = signOrNothing(), digitSequence(), token(@EXPONENT)
64
65FLOAT_LITERAL = token(DOUBLE_LITERAL), caseInsensitiveChar(f)