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