yini-parser 1.0.2-beta → 1.1.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +83 -98
- package/dist/YINI.d.ts +34 -11
- package/dist/YINI.js +206 -93
- package/dist/core/ASTBuilder.d.ts +191 -0
- package/dist/core/ASTBuilder.js +827 -0
- package/dist/core/ErrorDataHandler.d.ts +19 -19
- package/dist/core/ErrorDataHandler.js +258 -150
- package/dist/core/objectBuilder.d.ts +9 -3
- package/dist/core/objectBuilder.js +126 -163
- package/dist/core/types.d.ts +234 -44
- package/dist/core/types.js +7 -33
- package/dist/grammar/YiniLexer.d.ts +54 -48
- package/dist/grammar/YiniLexer.js +324 -289
- package/dist/grammar/YiniParser.d.ts +167 -150
- package/dist/grammar/YiniParser.js +1241 -1202
- package/dist/grammar/YiniParserVisitor.d.ts +59 -45
- package/dist/grammar/YiniParserVisitor.js +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +286 -26
- package/dist/parseEntry.d.ts +3 -2
- package/dist/parseEntry.js +352 -81
- package/dist/parsers/extractHeaderParts.d.ts +3 -2
- package/dist/parsers/extractHeaderParts.js +1 -0
- package/dist/parsers/parseBoolean.d.ts +1 -1
- package/dist/parsers/parseBoolean.js +2 -1
- package/dist/parsers/parseNumber.d.ts +8 -3
- package/dist/parsers/parseNumber.js +21 -7
- package/dist/parsers/parseSectionHeader.d.ts +3 -2
- package/dist/parsers/parseSectionHeader.js +1 -0
- package/dist/utils/number.d.ts +3 -0
- package/dist/utils/number.js +18 -0
- package/dist/utils/object.d.ts +55 -0
- package/dist/utils/object.js +85 -0
- package/dist/utils/string.d.ts +21 -1
- package/dist/utils/string.js +39 -4
- package/dist/utils/system.d.ts +15 -0
- package/dist/utils/system.js +21 -0
- package/dist/yiniHelpers.d.ts +3 -0
- package/dist/yiniHelpers.js +43 -7
- package/package.json +1 -1
- package/dist/core/YINIVisitor.d.ts +0 -158
- package/dist/core/YINIVisitor.js +0 -1008
|
@@ -1,58 +1,62 @@
|
|
|
1
|
-
import { ATN, CharStream, DFA, Lexer } from "antlr4";
|
|
1
|
+
import { ATN, CharStream, DFA, Lexer, RuleContext } from "antlr4";
|
|
2
2
|
export default class YiniLexer extends Lexer {
|
|
3
|
-
static readonly
|
|
4
|
-
static readonly
|
|
5
|
-
static readonly
|
|
6
|
-
static readonly
|
|
7
|
-
static readonly
|
|
8
|
-
static readonly
|
|
9
|
-
static readonly
|
|
10
|
-
static readonly
|
|
11
|
-
static readonly
|
|
12
|
-
static readonly
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
3
|
+
static readonly YINI_TOKEN = 1;
|
|
4
|
+
static readonly INCLUDE_TOKEN = 2;
|
|
5
|
+
static readonly DEPRECATED_TOKEN = 3;
|
|
6
|
+
static readonly SECTION_HEAD = 4;
|
|
7
|
+
static readonly TERMINAL_TOKEN = 5;
|
|
8
|
+
static readonly SS = 6;
|
|
9
|
+
static readonly EUR = 7;
|
|
10
|
+
static readonly CARET = 8;
|
|
11
|
+
static readonly GT = 9;
|
|
12
|
+
static readonly LT = 10;
|
|
13
|
+
static readonly EQ = 11;
|
|
14
|
+
static readonly HASH = 12;
|
|
15
|
+
static readonly COMMA = 13;
|
|
16
|
+
static readonly COLON = 14;
|
|
17
|
+
static readonly OB = 15;
|
|
18
|
+
static readonly CB = 16;
|
|
19
|
+
static readonly OC = 17;
|
|
20
|
+
static readonly CC = 18;
|
|
21
|
+
static readonly PLUS = 19;
|
|
22
|
+
static readonly DOLLAR = 20;
|
|
23
|
+
static readonly PC = 21;
|
|
24
|
+
static readonly AT = 22;
|
|
25
|
+
static readonly SEMICOLON = 23;
|
|
26
|
+
static readonly BOOLEAN_FALSE = 24;
|
|
27
|
+
static readonly BOOLEAN_TRUE = 25;
|
|
28
|
+
static readonly NULL = 26;
|
|
29
|
+
static readonly EMPTY_OBJECT = 27;
|
|
30
|
+
static readonly EMPTY_LIST = 28;
|
|
31
|
+
static readonly SHEBANG = 29;
|
|
32
|
+
static readonly NUMBER = 30;
|
|
33
|
+
static readonly KEY = 31;
|
|
34
|
+
static readonly IDENT = 32;
|
|
35
|
+
static readonly IDENT_BACKTICKED = 33;
|
|
36
|
+
static readonly STRING = 34;
|
|
37
|
+
static readonly TRIPLE_QUOTED_STRING = 35;
|
|
38
|
+
static readonly SINGLE_OR_DOUBLE = 36;
|
|
39
|
+
static readonly R_AND_C_STRING = 37;
|
|
40
|
+
static readonly HYPER_STRING = 38;
|
|
41
|
+
static readonly ESC_SEQ = 39;
|
|
42
|
+
static readonly ESC_SEQ_BASE = 40;
|
|
43
|
+
static readonly NL = 41;
|
|
44
|
+
static readonly SINGLE_NL = 42;
|
|
45
|
+
static readonly WS = 43;
|
|
46
|
+
static readonly BLOCK_COMMENT = 44;
|
|
47
|
+
static readonly COMMENT = 45;
|
|
48
|
+
static readonly LINE_COMMENT = 46;
|
|
49
|
+
static readonly INLINE_COMMENT = 47;
|
|
50
|
+
static readonly IDENT_INVALID = 48;
|
|
51
|
+
static readonly REST = 49;
|
|
52
|
+
static readonly META_INVALID = 50;
|
|
50
53
|
static readonly EOF: number;
|
|
51
54
|
static readonly channelNames: string[];
|
|
52
55
|
static readonly literalNames: (string | null)[];
|
|
53
56
|
static readonly symbolicNames: (string | null)[];
|
|
54
57
|
static readonly modeNames: string[];
|
|
55
58
|
static readonly ruleNames: string[];
|
|
59
|
+
atLineStart(): boolean;
|
|
56
60
|
constructor(input: CharStream);
|
|
57
61
|
get grammarFileName(): string;
|
|
58
62
|
get literalNames(): (string | null)[];
|
|
@@ -61,6 +65,8 @@ export default class YiniLexer extends Lexer {
|
|
|
61
65
|
get serializedATN(): number[];
|
|
62
66
|
get channelNames(): string[];
|
|
63
67
|
get modeNames(): string[];
|
|
68
|
+
sempred(localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
|
|
69
|
+
private LINE_COMMENT_sempred;
|
|
64
70
|
static readonly _serializedATN: number[];
|
|
65
71
|
private static __ATN;
|
|
66
72
|
static get _ATN(): ATN;
|