|
1 | | -// Generated from ./src/main/java/org/rumbledb/parser/Jsoniq.g4 by ANTLR 4.7 |
| 1 | +// Generated from ./src/main/java/org/rumbledb/parser/Jsoniq.g4 by ANTLR 4.8 |
2 | 2 |
|
3 | 3 | // Java header |
4 | 4 | package org.rumbledb.parser; |
|
16 | 16 |
|
17 | 17 | @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) |
18 | 18 | public class JsoniqLexer extends Lexer { |
19 | | - static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); } |
| 19 | + static { RuntimeMetaData.checkVersion("4.8", RuntimeMetaData.VERSION); } |
20 | 20 |
|
21 | 21 | protected static final DFA[] _decisionToDFA; |
22 | 22 | protected static final PredictionContextCache _sharedContextCache = |
@@ -49,63 +49,72 @@ public class JsoniqLexer extends Lexer { |
49 | 49 | "DEFAULT_MODE" |
50 | 50 | }; |
51 | 51 |
|
52 | | - public static final String[] ruleNames = { |
53 | | - "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", |
54 | | - "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", |
55 | | - "T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24", |
56 | | - "T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32", |
57 | | - "T__33", "T__34", "T__35", "T__36", "T__37", "T__38", "T__39", "T__40", |
58 | | - "T__41", "T__42", "T__43", "T__44", "T__45", "T__46", "T__47", "T__48", |
59 | | - "T__49", "T__50", "T__51", "T__52", "T__53", "T__54", "T__55", "T__56", |
60 | | - "T__57", "T__58", "T__59", "Kfor", "Klet", "Kwhere", "Kgroup", "Kby", |
61 | | - "Korder", "Kreturn", "Kif", "Kin", "Kas", "Kat", "Kallowing", "Kempty", |
62 | | - "Kcount", "Kstable", "Kascending", "Kdescending", "Ksome", "Kevery", "Ksatisfies", |
63 | | - "Kcollation", "Kgreatest", "Kleast", "Kswitch", "Kcase", "Ktry", "Kcatch", |
64 | | - "Kdefault", "Kthen", "Kelse", "Ktypeswitch", "Kor", "Kand", "Knot", "Kto", |
65 | | - "Kinstance", "Kof", "Kstatically", "Kis", "Ktreat", "Kcast", "Kcastable", |
66 | | - "Kversion", "Kjsoniq", "Kunordered", "Ktrue", "Kfalse", "Ktype", "Kvalidate", |
67 | | - "Kannotate", "Kdeclare", "Kcontext", "Kitem", "Kvariable", "STRING", "ESC", |
68 | | - "UNICODE", "HEX", "ArgumentPlaceholder", "NullLiteral", "Literal", "NumericLiteral", |
69 | | - "IntegerLiteral", "DecimalLiteral", "DoubleLiteral", "Digits", "WS", "NCName", |
70 | | - "NameStartChar", "NameChar", "XQComment", "ContentChar" |
71 | | - }; |
| 52 | + private static String[] makeRuleNames() { |
| 53 | + return new String[] { |
| 54 | + "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", |
| 55 | + "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", |
| 56 | + "T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24", |
| 57 | + "T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32", |
| 58 | + "T__33", "T__34", "T__35", "T__36", "T__37", "T__38", "T__39", "T__40", |
| 59 | + "T__41", "T__42", "T__43", "T__44", "T__45", "T__46", "T__47", "T__48", |
| 60 | + "T__49", "T__50", "T__51", "T__52", "T__53", "T__54", "T__55", "T__56", |
| 61 | + "T__57", "T__58", "T__59", "Kfor", "Klet", "Kwhere", "Kgroup", "Kby", |
| 62 | + "Korder", "Kreturn", "Kif", "Kin", "Kas", "Kat", "Kallowing", "Kempty", |
| 63 | + "Kcount", "Kstable", "Kascending", "Kdescending", "Ksome", "Kevery", |
| 64 | + "Ksatisfies", "Kcollation", "Kgreatest", "Kleast", "Kswitch", "Kcase", |
| 65 | + "Ktry", "Kcatch", "Kdefault", "Kthen", "Kelse", "Ktypeswitch", "Kor", |
| 66 | + "Kand", "Knot", "Kto", "Kinstance", "Kof", "Kstatically", "Kis", "Ktreat", |
| 67 | + "Kcast", "Kcastable", "Kversion", "Kjsoniq", "Kunordered", "Ktrue", "Kfalse", |
| 68 | + "Ktype", "Kvalidate", "Kannotate", "Kdeclare", "Kcontext", "Kitem", "Kvariable", |
| 69 | + "STRING", "ESC", "UNICODE", "HEX", "ArgumentPlaceholder", "NullLiteral", |
| 70 | + "Literal", "NumericLiteral", "IntegerLiteral", "DecimalLiteral", "DoubleLiteral", |
| 71 | + "Digits", "WS", "NCName", "NameStartChar", "NameChar", "XQComment", "ContentChar" |
| 72 | + }; |
| 73 | + } |
| 74 | + public static final String[] ruleNames = makeRuleNames(); |
72 | 75 |
|
73 | | - private static final String[] _LITERAL_NAMES = { |
74 | | - null, "';'", "'module'", "'namespace'", "'='", "'ordering'", "'ordered'", |
75 | | - "'decimal-format'", "':'", "'decimal-separator'", "'grouping-separator'", |
76 | | - "'infinity'", "'minus-sign'", "'NaN'", "'percent'", "'per-mille'", "'zero-digit'", |
77 | | - "'digit'", "'pattern-separator'", "'import'", "','", "':='", "'external'", |
78 | | - "'function'", "'('", "')'", "'{'", "'}'", "'jsound'", "'compact'", "'verbose'", |
79 | | - "'json'", "'schema'", "'$'", "'|'", "'*'", "'eq'", "'ne'", "'lt'", "'le'", |
80 | | - "'gt'", "'ge'", "'!='", "'<'", "'<='", "'>'", "'>='", "'||'", "'+'", "'-'", |
81 | | - "'div'", "'idiv'", "'mod'", "'!'", "'['", "']'", "'.'", "'$$'", "'#'", |
82 | | - "'{|'", "'|}'", "'for'", "'let'", "'where'", "'group'", "'by'", "'order'", |
83 | | - "'return'", "'if'", "'in'", "'as'", "'at'", "'allowing'", "'empty'", "'count'", |
84 | | - "'stable'", "'ascending'", "'descending'", "'some'", "'every'", "'satisfies'", |
85 | | - "'collation'", "'greatest'", "'least'", "'switch'", "'case'", "'try'", |
86 | | - "'catch'", "'default'", "'then'", "'else'", "'typeswitch'", "'or'", "'and'", |
87 | | - "'not'", "'to'", "'instance'", "'of'", "'statically'", "'is'", "'treat'", |
88 | | - "'cast'", "'castable'", "'version'", "'jsoniq'", "'unordered'", "'true'", |
89 | | - "'false'", "'type'", "'validate'", "'annotate'", "'declare'", "'context'", |
90 | | - "'item'", "'variable'", null, "'?'", "'null'" |
91 | | - }; |
92 | | - private static final String[] _SYMBOLIC_NAMES = { |
93 | | - null, null, null, null, null, null, null, null, null, null, null, null, |
94 | | - null, null, null, null, null, null, null, null, null, null, null, null, |
95 | | - null, null, null, null, null, null, null, null, null, null, null, null, |
96 | | - null, null, null, null, null, null, null, null, null, null, null, null, |
97 | | - null, null, null, null, null, null, null, null, null, null, null, null, |
98 | | - null, "Kfor", "Klet", "Kwhere", "Kgroup", "Kby", "Korder", "Kreturn", |
99 | | - "Kif", "Kin", "Kas", "Kat", "Kallowing", "Kempty", "Kcount", "Kstable", |
100 | | - "Kascending", "Kdescending", "Ksome", "Kevery", "Ksatisfies", "Kcollation", |
101 | | - "Kgreatest", "Kleast", "Kswitch", "Kcase", "Ktry", "Kcatch", "Kdefault", |
102 | | - "Kthen", "Kelse", "Ktypeswitch", "Kor", "Kand", "Knot", "Kto", "Kinstance", |
103 | | - "Kof", "Kstatically", "Kis", "Ktreat", "Kcast", "Kcastable", "Kversion", |
104 | | - "Kjsoniq", "Kunordered", "Ktrue", "Kfalse", "Ktype", "Kvalidate", "Kannotate", |
105 | | - "Kdeclare", "Kcontext", "Kitem", "Kvariable", "STRING", "ArgumentPlaceholder", |
106 | | - "NullLiteral", "Literal", "NumericLiteral", "IntegerLiteral", "DecimalLiteral", |
107 | | - "DoubleLiteral", "WS", "NCName", "XQComment", "ContentChar" |
108 | | - }; |
| 76 | + private static String[] makeLiteralNames() { |
| 77 | + return new String[] { |
| 78 | + null, "';'", "'module'", "'namespace'", "'='", "'ordering'", "'ordered'", |
| 79 | + "'decimal-format'", "':'", "'decimal-separator'", "'grouping-separator'", |
| 80 | + "'infinity'", "'minus-sign'", "'NaN'", "'percent'", "'per-mille'", "'zero-digit'", |
| 81 | + "'digit'", "'pattern-separator'", "'import'", "','", "':='", "'external'", |
| 82 | + "'function'", "'('", "')'", "'{'", "'}'", "'jsound'", "'compact'", "'verbose'", |
| 83 | + "'json'", "'schema'", "'$'", "'|'", "'*'", "'eq'", "'ne'", "'lt'", "'le'", |
| 84 | + "'gt'", "'ge'", "'!='", "'<'", "'<='", "'>'", "'>='", "'||'", "'+'", |
| 85 | + "'-'", "'div'", "'idiv'", "'mod'", "'!'", "'['", "']'", "'.'", "'$$'", |
| 86 | + "'#'", "'{|'", "'|}'", "'for'", "'let'", "'where'", "'group'", "'by'", |
| 87 | + "'order'", "'return'", "'if'", "'in'", "'as'", "'at'", "'allowing'", |
| 88 | + "'empty'", "'count'", "'stable'", "'ascending'", "'descending'", "'some'", |
| 89 | + "'every'", "'satisfies'", "'collation'", "'greatest'", "'least'", "'switch'", |
| 90 | + "'case'", "'try'", "'catch'", "'default'", "'then'", "'else'", "'typeswitch'", |
| 91 | + "'or'", "'and'", "'not'", "'to'", "'instance'", "'of'", "'statically'", |
| 92 | + "'is'", "'treat'", "'cast'", "'castable'", "'version'", "'jsoniq'", "'unordered'", |
| 93 | + "'true'", "'false'", "'type'", "'validate'", "'annotate'", "'declare'", |
| 94 | + "'context'", "'item'", "'variable'", null, "'?'", "'null'" |
| 95 | + }; |
| 96 | + } |
| 97 | + private static final String[] _LITERAL_NAMES = makeLiteralNames(); |
| 98 | + private static String[] makeSymbolicNames() { |
| 99 | + return new String[] { |
| 100 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 101 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 102 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 103 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 104 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 105 | + null, "Kfor", "Klet", "Kwhere", "Kgroup", "Kby", "Korder", "Kreturn", |
| 106 | + "Kif", "Kin", "Kas", "Kat", "Kallowing", "Kempty", "Kcount", "Kstable", |
| 107 | + "Kascending", "Kdescending", "Ksome", "Kevery", "Ksatisfies", "Kcollation", |
| 108 | + "Kgreatest", "Kleast", "Kswitch", "Kcase", "Ktry", "Kcatch", "Kdefault", |
| 109 | + "Kthen", "Kelse", "Ktypeswitch", "Kor", "Kand", "Knot", "Kto", "Kinstance", |
| 110 | + "Kof", "Kstatically", "Kis", "Ktreat", "Kcast", "Kcastable", "Kversion", |
| 111 | + "Kjsoniq", "Kunordered", "Ktrue", "Kfalse", "Ktype", "Kvalidate", "Kannotate", |
| 112 | + "Kdeclare", "Kcontext", "Kitem", "Kvariable", "STRING", "ArgumentPlaceholder", |
| 113 | + "NullLiteral", "Literal", "NumericLiteral", "IntegerLiteral", "DecimalLiteral", |
| 114 | + "DoubleLiteral", "WS", "NCName", "XQComment", "ContentChar" |
| 115 | + }; |
| 116 | + } |
| 117 | + private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames(); |
109 | 118 | public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); |
110 | 119 |
|
111 | 120 | /** |
|
0 commit comments