|
1 | 1 | //------------------------------------------------------------------------------ |
2 | 2 | // <auto-generated> |
3 | 3 | // This code was generated by a tool. |
4 | | -// ANTLR Version: 4.3 |
| 4 | +// ANTLR Version: 4.5.3 |
5 | 5 | // |
6 | 6 | // Changes to this file may cause incorrect behavior and will be lost if |
7 | 7 | // the code is regenerated. |
8 | 8 | // </auto-generated> |
9 | 9 | //------------------------------------------------------------------------------ |
10 | 10 |
|
11 | | -// Generated from C:\Users\hosch\Documents\Visual Studio 2015\Projects\Rubberduck\Rubberduck.Parsing\Grammar\VBALexer.g4 by ANTLR 4.3 |
| 11 | +// Generated from C:\Users\hosch\Documents\Visual Studio 2015\Projects\Rubberduck\Rubberduck.Parsing\Grammar\VBALexer.g4 by ANTLR 4.5.3 |
12 | 12 |
|
13 | 13 | // Unreachable code detected |
14 | 14 | #pragma warning disable 0162 |
15 | 15 | // The variable '...' is assigned but its value is never used |
16 | 16 | #pragma warning disable 0219 |
17 | 17 | // Missing XML comment for publicly visible type or member '...' |
18 | 18 | #pragma warning disable 1591 |
| 19 | +// Ambiguous reference in cref attribute |
| 20 | +#pragma warning disable 419 |
19 | 21 |
|
20 | 22 | namespace Rubberduck.Parsing.Grammar { |
21 | 23 | using Antlr4.Runtime; |
22 | 24 | using Antlr4.Runtime.Atn; |
23 | 25 | using Antlr4.Runtime.Misc; |
24 | 26 | using DFA = Antlr4.Runtime.Dfa.DFA; |
25 | 27 |
|
26 | | -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.3")] |
| 28 | +[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.5.3")] |
27 | 29 | [System.CLSCompliant(false)] |
28 | 30 | public partial class VBALexer : Lexer { |
29 | 31 | public const int |
@@ -68,41 +70,6 @@ public const int |
68 | 70 | "DEFAULT_MODE" |
69 | 71 | }; |
70 | 72 |
|
71 | | - public static readonly string[] tokenNames = { |
72 | | - "'\\u0000'", "'\\u0001'", "'\\u0002'", "'\\u0003'", "'\\u0004'", "'\\u0005'", |
73 | | - "'\\u0006'", "'\\u0007'", "'\b'", "'\t'", "'\n'", "'\\u000B'", "'\f'", |
74 | | - "'\r'", "'\\u000E'", "'\\u000F'", "'\\u0010'", "'\\u0011'", "'\\u0012'", |
75 | | - "'\\u0013'", "'\\u0014'", "'\\u0015'", "'\\u0016'", "'\\u0017'", "'\\u0018'", |
76 | | - "'\\u0019'", "'\\u001A'", "'\\u001B'", "'\\u001C'", "'\\u001D'", "'\\u001E'", |
77 | | - "'\\u001F'", "' '", "'!'", "'\"'", "'#'", "'$'", "'%'", "'&'", "'''", |
78 | | - "'('", "')'", "'*'", "'+'", "','", "'-'", "'.'", "'/'", "'0'", "'1'", |
79 | | - "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'", "'9'", "':'", "';'", |
80 | | - "'<'", "'='", "'>'", "'?'", "'@'", "'A'", "'B'", "'C'", "'D'", "'E'", |
81 | | - "'F'", "'G'", "'H'", "'I'", "'J'", "'K'", "'L'", "'M'", "'N'", "'O'", |
82 | | - "'P'", "'Q'", "'R'", "'S'", "'T'", "'U'", "'V'", "'W'", "'X'", "'Y'", |
83 | | - "'Z'", "'['", "'\\'", "']'", "'^'", "'_'", "'`'", "'a'", "'b'", "'c'", |
84 | | - "'d'", "'e'", "'f'", "'g'", "'h'", "'i'", "'j'", "'k'", "'l'", "'m'", |
85 | | - "'n'", "'o'", "'p'", "'q'", "'r'", "'s'", "'t'", "'u'", "'v'", "'w'", |
86 | | - "'x'", "'y'", "'z'", "'{'", "'|'", "'}'", "'~'", "'\\u007F'", "'\\u0080'", |
87 | | - "'\\u0081'", "'\\u0082'", "'\\u0083'", "'\\u0084'", "'\\u0085'", "'\\u0086'", |
88 | | - "'\\u0087'", "'\\u0088'", "'\\u0089'", "'\\u008A'", "'\\u008B'", "'\\u008C'", |
89 | | - "'\\u008D'", "'\\u008E'", "'\\u008F'", "'\\u0090'", "'\\u0091'", "'\\u0092'", |
90 | | - "'\\u0093'", "'\\u0094'", "'\\u0095'", "'\\u0096'", "'\\u0097'", "'\\u0098'", |
91 | | - "'\\u0099'", "'\\u009A'", "'\\u009B'", "'\\u009C'", "'\\u009D'", "'\\u009E'", |
92 | | - "'\\u009F'", "'\\u00A0'", "'\\u00A1'", "'\\u00A2'", "'\\u00A3'", "'\\u00A4'", |
93 | | - "'\\u00A5'", "'\\u00A6'", "'\\u00A7'", "'\\u00A8'", "'\\u00A9'", "'\\u00AA'", |
94 | | - "'\\u00AB'", "'\\u00AC'", "'\\u00AD'", "'\\u00AE'", "'\\u00AF'", "'\\u00B0'", |
95 | | - "'\\u00B1'", "'\\u00B2'", "'\\u00B3'", "'\\u00B4'", "'\\u00B5'", "'\\u00B6'", |
96 | | - "'\\u00B7'", "'\\u00B8'", "'\\u00B9'", "'\\u00BA'", "'\\u00BB'", "'\\u00BC'", |
97 | | - "'\\u00BD'", "'\\u00BE'", "'\\u00BF'", "'\\u00C0'", "'\\u00C1'", "'\\u00C2'", |
98 | | - "'\\u00C3'", "'\\u00C4'", "'\\u00C5'", "'\\u00C6'", "'\\u00C7'", "'\\u00C8'", |
99 | | - "'\\u00C9'", "'\\u00CA'", "'\\u00CB'", "'\\u00CC'", "'\\u00CD'", "'\\u00CE'", |
100 | | - "'\\u00CF'", "'\\u00D0'", "'\\u00D1'", "'\\u00D2'", "'\\u00D3'", "'\\u00D4'", |
101 | | - "'\\u00D5'", "'\\u00D6'", "'\\u00D7'", "'\\u00D8'", "'\\u00D9'", "'\\u00DA'", |
102 | | - "'\\u00DB'", "'\\u00DC'", "'\\u00DD'", "'\\u00DE'", "'\\u00DF'", "'\\u00E0'", |
103 | | - "'\\u00E1'", "'\\u00E2'", "'\\u00E3'", "'\\u00E4'", "'\\u00E5'", "'\\u00E6'", |
104 | | - "'\\u00E7'", "'\\u00E8'", "'\\u00E9'", "'\\u00EA'", "'\\u00EB'" |
105 | | - }; |
106 | 73 | public static readonly string[] ruleNames = { |
107 | 74 | "ABS", "ANY", "ARRAY", "B_CHAR", "BF", "CBOOL", "CBYTE", "CCUR", "CDATE", |
108 | 75 | "CDBL", "CDEC", "CINT", "CIRCLE", "CLNG", "CLNGLNG", "CLNGPTR", "CSNG", |
@@ -154,9 +121,102 @@ public VBALexer(ICharStream input) |
154 | 121 | _interp = new LexerATNSimulator(this,_ATN); |
155 | 122 | } |
156 | 123 |
|
157 | | - public override string GrammarFileName { get { return "VBALexer.g4"; } } |
| 124 | + private static readonly string[] _LiteralNames = { |
| 125 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 126 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 127 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 128 | + null, null, null, "','", "':'", "';'", "'!'", "'.'", "'#'", "'@'", "'%'", |
| 129 | + "'$'", "'&'", null, null, null, null, null, null, null, null, null, null, |
| 130 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 131 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 132 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 133 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 134 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 135 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 136 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 137 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 138 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 139 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 140 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 141 | + null, null, null, null, null, null, null, null, null, null, null, null, |
| 142 | + null, null, "':='", "'/'", "'\\'", "'='", null, "'>'", null, "'('", "'<'", |
| 143 | + "'-'", "'*'", null, "'+'", "'^'", "')'", "'['", "']'", null, null, null, |
| 144 | + null, null, null, null, "'''", "'_'" |
| 145 | + }; |
| 146 | + private static readonly string[] _SymbolicNames = { |
| 147 | + null, "ABS", "ANY", "ARRAY", "B_CHAR", "BF", "CBOOL", "CBYTE", "CCUR", |
| 148 | + "CDATE", "CDBL", "CDEC", "CINT", "CIRCLE", "CLNG", "CLNGLNG", "CLNGPTR", |
| 149 | + "CSNG", "CSTR", "CURRENCY", "CVAR", "CVERR", "DEBUG", "DOEVENTS", "EXIT", |
| 150 | + "FIX", "INPUTB", "INT", "LBOUND", "LEN", "LENB", "LONGLONG", "LONGPTR", |
| 151 | + "MIDB", "OPTION", "PSET", "SCALE", "SGN", "UBOUND", "COMMA", "COLON", |
| 152 | + "SEMICOLON", "EXCLAMATIONPOINT", "DOT", "HASH", "AT", "PERCENT", "DOLLAR", |
| 153 | + "AMPERSAND", "ACCESS", "ADDRESSOF", "ALIAS", "AND", "ATTRIBUTE", "APPEND", |
| 154 | + "AS", "BEGIN", "BINARY", "BOOLEAN", "BYVAL", "BYREF", "BYTE", "CALL", |
| 155 | + "CASE", "CLASS", "CLOSE", "CONST", "DATABASE", "DATE", "DECLARE", "DEFBOOL", |
| 156 | + "DEFBYTE", "DEFDATE", "DEFDBL", "DEFCUR", "DEFINT", "DEFLNG", "DEFLNGLNG", |
| 157 | + "DEFLNGPTR", "DEFOBJ", "DEFSNG", "DEFSTR", "DEFVAR", "DIM", "DO", "DOUBLE", |
| 158 | + "EACH", "ELSE", "ELSEIF", "EMPTY", "END_ENUM", "END_FUNCTION", "END_IF", |
| 159 | + "END_PROPERTY", "END_SELECT", "END_SUB", "END_TYPE", "END_WITH", "END", |
| 160 | + "ENUM", "EQV", "ERASE", "ERROR", "EVENT", "EXIT_DO", "EXIT_FOR", "EXIT_FUNCTION", |
| 161 | + "EXIT_PROPERTY", "EXIT_SUB", "FALSE", "FRIEND", "FOR", "FUNCTION", "GET", |
| 162 | + "GLOBAL", "GOSUB", "GOTO", "IF", "IMP", "IMPLEMENTS", "IN", "INPUT", "IS", |
| 163 | + "INTEGER", "LOCK", "LONG", "LOOP", "LET", "LIB", "LIKE", "LINE_INPUT", |
| 164 | + "LOCK_READ", "LOCK_WRITE", "LOCK_READ_WRITE", "LSET", "ME", "MID", "MOD", |
| 165 | + "NAME", "NEXT", "NEW", "NOT", "NOTHING", "NULL", "OBJECT", "ON", "ON_ERROR", |
| 166 | + "ON_LOCAL_ERROR", "OPEN", "OPTIONAL", "OPTION_BASE", "OPTION_EXPLICIT", |
| 167 | + "OPTION_COMPARE", "OPTION_PRIVATE_MODULE", "OR", "OUTPUT", "PARAMARRAY", |
| 168 | + "PRESERVE", "PRINT", "PRIVATE", "PROPERTY_GET", "PROPERTY_LET", "PROPERTY_SET", |
| 169 | + "PTRSAFE", "PUBLIC", "PUT", "RANDOM", "RAISEEVENT", "READ", "READ_WRITE", |
| 170 | + "REDIM", "REM", "RESET", "RESUME", "RETURN", "RSET", "SEEK", "SELECT", |
| 171 | + "SET", "SHARED", "SINGLE", "SPC", "STATIC", "STEP", "STOP", "STRING", |
| 172 | + "SUB", "TAB", "TEXT", "THEN", "TO", "TRUE", "TYPE", "TYPEOF", "UNLOCK", |
| 173 | + "UNTIL", "VARIANT", "VERSION", "WEND", "WHILE", "WIDTH", "WITH", "WITHEVENTS", |
| 174 | + "WRITE", "XOR", "ASSIGN", "DIV", "INTDIV", "EQ", "GEQ", "GT", "LEQ", "LPAREN", |
| 175 | + "LT", "MINUS", "MULT", "NEQ", "PLUS", "POW", "RPAREN", "L_SQUARE_BRACKET", |
| 176 | + "R_SQUARE_BRACKET", "STRINGLITERAL", "OCTLITERAL", "HEXLITERAL", "FLOATLITERAL", |
| 177 | + "INTEGERLITERAL", "DATELITERAL", "NEWLINE", "SINGLEQUOTE", "UNDERSCORE", |
| 178 | + "WS", "GUIDLITERAL", "IDENTIFIER", "LINE_CONTINUATION", "ERRORCHAR" |
| 179 | + }; |
| 180 | + public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames); |
| 181 | + |
| 182 | + [System.Obsolete("Use Vocabulary instead.")] |
| 183 | + public static readonly string[] tokenNames = GenerateTokenNames(DefaultVocabulary, _SymbolicNames.Length); |
| 184 | + |
| 185 | + private static string[] GenerateTokenNames(IVocabulary vocabulary, int length) { |
| 186 | + string[] tokenNames = new string[length]; |
| 187 | + for (int i = 0; i < tokenNames.Length; i++) { |
| 188 | + tokenNames[i] = vocabulary.GetLiteralName(i); |
| 189 | + if (tokenNames[i] == null) { |
| 190 | + tokenNames[i] = vocabulary.GetSymbolicName(i); |
| 191 | + } |
| 192 | + |
| 193 | + if (tokenNames[i] == null) { |
| 194 | + tokenNames[i] = "<INVALID>"; |
| 195 | + } |
| 196 | + } |
| 197 | + |
| 198 | + return tokenNames; |
| 199 | + } |
| 200 | + |
| 201 | + [System.Obsolete] |
| 202 | + public override string[] TokenNames |
| 203 | + { |
| 204 | + get |
| 205 | + { |
| 206 | + return tokenNames; |
| 207 | + } |
| 208 | + } |
158 | 209 |
|
159 | | - public override string[] TokenNames { get { return tokenNames; } } |
| 210 | + [NotNull] |
| 211 | + public override IVocabulary Vocabulary |
| 212 | + { |
| 213 | + get |
| 214 | + { |
| 215 | + return DefaultVocabulary; |
| 216 | + } |
| 217 | + } |
| 218 | + |
| 219 | + public override string GrammarFileName { get { return "VBALexer.g4"; } } |
160 | 220 |
|
161 | 221 | public override string[] RuleNames { get { return ruleNames; } } |
162 | 222 |
|
|
0 commit comments