blob: 56c7212b5e4846ff00c68f117e17e48825e52a90 [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)
29INTERVAL_TIME_CONS = string(interval_time)
30INTERVAL_DATE_CONS = string(interval_date)
31INTERVAL_DATETIME_CONS = string(interval_datetime)
32
33NULL_LITERAL = string(null)
34TRUE_LITERAL = string(true)
35FALSE_LITERAL = string(false)
36
37CONSTRUCTOR_OPEN = char(()
38CONSTRUCTOR_CLOSE = char())
39START_RECORD = char({)
40END_RECORD = char(})
41COMMA = char(\,)
42COLON = char(:)
43START_ORDERED_LIST = char([)
44END_ORDERED_LIST = char(])
45START_UNORDERED_LIST = string({{)
46END_UNORDERED_LIST = string(}})
47
48STRING_LITERAL = char("), anythingUntil(")
49
50INT_LITERAL = signOrNothing(), digitSequence()
51INT8_LITERAL = token(INT_LITERAL), string(i8)
52INT16_LITERAL = token(INT_LITERAL), string(i16)
53INT32_LITERAL = token(INT_LITERAL), string(i32)
54INT64_LITERAL = token(INT_LITERAL), string(i64)
55
56@EXPONENT = caseInsensitiveChar(e), signOrNothing(), digitSequence()
57
58DOUBLE_LITERAL = signOrNothing(), char(.), digitSequence()
59DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence()
60DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence(), token(@EXPONENT)
61DOUBLE_LITERAL = signOrNothing(), digitSequence(), token(@EXPONENT)
62
63FLOAT_LITERAL = token(DOUBLE_LITERAL), caseInsensitiveChar(f)