diegogiorgini@gmail.com | 2de6d34 | 2013-02-16 02:41:45 +0000 | [diff] [blame] | 1 | # LEXER GENERATOR configuration file |
| 2 | # --------------------------------------- |
| 3 | # Place *first* the generic configuration |
| 4 | # then list your grammar. |
| 5 | |
| 6 | PACKAGE: edu.uci.ics.asterix.runtime.operators.file.adm |
| 7 | LEXER_NAME: AdmLexer |
| 8 | |
| 9 | TOKENS: |
| 10 | |
| 11 | BOOLEAN_CONS = string(boolean) |
| 12 | INT8_CONS = string(int8) |
| 13 | INT16_CONS = string(int16) |
| 14 | INT32_CONS = string(int32) |
| 15 | INT64_CONS = string(int64) |
| 16 | FLOAT_CONS = string(float) |
| 17 | DOUBLE_CONS = string(double) |
| 18 | DATE_CONS = string(date) |
| 19 | DATETIME_CONS = string(datetime) |
| 20 | DURATION_CONS = string(duration) |
| 21 | STRING_CONS = string(string) |
| 22 | POINT_CONS = string(point) |
| 23 | POINT3D_CONS = string(point3d) |
| 24 | LINE_CONS = string(line) |
| 25 | POLYGON_CONS = string(polygon) |
| 26 | RECTANGLE_CONS = string(rectangle) |
| 27 | CIRCLE_CONS = string(circle) |
| 28 | TIME_CONS = string(time) |
jarodwen | 4e6c471 | 2013-03-06 00:41:52 +0000 | [diff] [blame] | 29 | INTERVAL_TIME_CONS = string(interval-time) |
| 30 | INTERVAL_DATE_CONS = string(interval-date) |
| 31 | INTERVAL_DATETIME_CONS = string(interval-datetime) |
JArod | ccac134 | 2013-05-15 11:00:44 -0700 | [diff] [blame] | 32 | YEAR_MONTH_DURATION_CONS = string(year-month-duration) |
| 33 | DAY_TIME_DURATION_CONS = string(day-time-duration) |
diegogiorgini@gmail.com | 2de6d34 | 2013-02-16 02:41:45 +0000 | [diff] [blame] | 34 | |
| 35 | NULL_LITERAL = string(null) |
| 36 | TRUE_LITERAL = string(true) |
| 37 | FALSE_LITERAL = string(false) |
| 38 | |
| 39 | CONSTRUCTOR_OPEN = char(() |
| 40 | CONSTRUCTOR_CLOSE = char()) |
| 41 | START_RECORD = char({) |
| 42 | END_RECORD = char(}) |
| 43 | COMMA = char(\,) |
| 44 | COLON = char(:) |
| 45 | START_ORDERED_LIST = char([) |
| 46 | END_ORDERED_LIST = char(]) |
| 47 | START_UNORDERED_LIST = string({{) |
ogeidix | b9d2cf8 | 2013-10-12 22:47:01 +0100 | [diff] [blame^] | 48 | # END_UNORDERED_LIST = }} is recognized as a double END_RECORD token |
diegogiorgini@gmail.com | 2de6d34 | 2013-02-16 02:41:45 +0000 | [diff] [blame] | 49 | |
| 50 | STRING_LITERAL = char("), anythingUntil(") |
| 51 | |
| 52 | INT_LITERAL = signOrNothing(), digitSequence() |
| 53 | INT8_LITERAL = token(INT_LITERAL), string(i8) |
| 54 | INT16_LITERAL = token(INT_LITERAL), string(i16) |
| 55 | INT32_LITERAL = token(INT_LITERAL), string(i32) |
| 56 | INT64_LITERAL = token(INT_LITERAL), string(i64) |
| 57 | |
| 58 | @EXPONENT = caseInsensitiveChar(e), signOrNothing(), digitSequence() |
| 59 | |
| 60 | DOUBLE_LITERAL = signOrNothing(), char(.), digitSequence() |
| 61 | DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence() |
| 62 | DOUBLE_LITERAL = signOrNothing(), digitSequence(), char(.), digitSequence(), token(@EXPONENT) |
| 63 | DOUBLE_LITERAL = signOrNothing(), digitSequence(), token(@EXPONENT) |
| 64 | |
| 65 | FLOAT_LITERAL = token(DOUBLE_LITERAL), caseInsensitiveChar(f) |