cariboujs 2.0.6 → 2.0.8

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.
Files changed (51) hide show
  1. package/README.md +5 -3
  2. package/abnf/AbnfLexer.js +51 -50
  3. package/asm/asm8080/asm8080Lexer.js +253 -152
  4. package/asm/asm8080/asm8080Listener.js +72 -0
  5. package/asm/asm8080/asm8080Parser.js +1307 -289
  6. package/asm/asm8080/asm8080Visitor.js +48 -0
  7. package/asm/asmZ80/asmZ80Lexer.js +152 -128
  8. package/asm/asmZ80/asmZ80Listener.js +9 -0
  9. package/asm/asmZ80/asmZ80Parser.js +316 -170
  10. package/asm/asmZ80/asmZ80Visitor.js +6 -0
  11. package/c/CParser.js +1352 -1344
  12. package/cypher/CypherLexer.js +208 -205
  13. package/cypher/CypherParser.js +1180 -984
  14. package/cypher/CypherParserListener.js +18 -0
  15. package/cypher/CypherParserVisitor.js +12 -0
  16. package/miniscript/MiniscriptLexer.js +199 -0
  17. package/miniscript/MiniscriptListener.js +180 -0
  18. package/miniscript/MiniscriptParser.js +2620 -0
  19. package/miniscript/MiniscriptVisitor.js +124 -0
  20. package/package.json +1 -1
  21. package/python/python3_14/PythonLexer.js +1238 -0
  22. package/python/python3_14/PythonLexerBase.js +819 -0
  23. package/python/{python3_13 → python3_14}/PythonParser.js +4141 -3347
  24. package/python/{python3_13 → python3_14}/PythonParserListener.js +81 -0
  25. package/python/{python3_13 → python3_14}/PythonParserVisitor.js +54 -0
  26. package/sql/plsql/PlSqlLexer.js +4114 -4113
  27. package/sql/plsql/PlSqlParser.js +37114 -31650
  28. package/sql/plsql/PlSqlParserBase.js +31 -0
  29. package/sql/plsql/PlSqlParserListener.js +58 -4
  30. package/sql/plsql/PlSqlParserVisitor.js +38 -2
  31. package/sysml-v2/SysMLv2Lexer.js +617 -605
  32. package/sysml-v2/SysMLv2Parser.js +7135 -10083
  33. package/sysml-v2/SysMLv2ParserListener.js +45 -423
  34. package/sysml-v2/SysMLv2ParserVisitor.js +30 -282
  35. package/xpath/xpath4/XPath4Lexer.js +667 -0
  36. package/xpath/xpath4/XPath4Parser.js +17424 -0
  37. package/xpath/xpath4/XPath4ParserBase.js +34 -0
  38. package/xpath/xpath4/XPath4ParserListener.js +1521 -0
  39. package/xpath/xpath4/XPath4ParserVisitor.js +1018 -0
  40. package/xquery/xquery4/XQuery4Lexer.js +1396 -0
  41. package/xquery/xquery4/XQuery4LexerBase.js +42 -0
  42. package/xquery/xquery4/XQuery4Parser.js +27899 -0
  43. package/xquery/xquery4/XQuery4ParserBase.js +38 -0
  44. package/xquery/xquery4/XQuery4ParserListener.js +2322 -0
  45. package/xquery/xquery4/XQuery4ParserVisitor.js +1552 -0
  46. package/awk/awkLexer.js +0 -317
  47. package/awk/awkListener.js +0 -378
  48. package/awk/awkParser.js +0 -5859
  49. package/awk/awkVisitor.js +0 -256
  50. package/python/python3_13/PythonLexer.js +0 -974
  51. package/python/python3_13/PythonLexerBase.js +0 -676
package/awk/awkLexer.js DELETED
@@ -1,317 +0,0 @@
1
- // Generated from awk.g4 by ANTLR 4.13.2
2
- // jshint ignore: start
3
- import antlr4 from 'antlr4';
4
-
5
-
6
- const serializedATN = [4,0,66,571,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,
7
- 4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,
8
- 12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,
9
- 2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,
10
- 27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,
11
- 7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,
12
- 41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,
13
- 2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,
14
- 56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,
15
- 7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,
16
- 70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,
17
- 3,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,
18
- 12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,
19
- 1,19,1,20,1,20,1,21,1,21,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,
20
- 24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,26,
21
- 1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,
22
- 29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,32,1,32,
23
- 1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,
24
- 33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,
25
- 1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,
26
- 39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,
27
- 1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,
28
- 41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,
29
- 1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,
30
- 41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,
31
- 1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,
32
- 41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,
33
- 1,41,1,41,1,41,1,41,1,41,1,41,3,41,400,8,41,1,42,1,42,1,42,1,43,1,43,1,43,
34
- 1,44,1,44,1,44,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,
35
- 48,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,
36
- 1,53,1,54,1,54,1,54,1,55,1,55,1,55,1,56,1,56,1,56,1,57,1,57,1,57,1,58,1,
37
- 58,5,58,452,8,58,10,58,12,58,455,9,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,
38
- 5,59,464,8,59,10,59,12,59,467,9,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,
39
- 61,3,61,477,8,61,1,61,1,61,1,62,1,62,1,62,1,62,3,62,485,8,62,1,63,4,63,488,
40
- 8,63,11,63,12,63,489,1,63,1,63,1,64,1,64,1,64,5,64,497,8,64,10,64,12,64,
41
- 500,9,64,1,64,1,64,1,65,1,65,5,65,506,8,65,10,65,12,65,509,9,65,1,66,1,66,
42
- 5,66,513,8,66,10,66,12,66,516,9,66,1,67,4,67,519,8,67,11,67,12,67,520,1,
43
- 68,1,68,1,68,1,68,3,68,527,8,68,1,69,1,69,3,69,531,8,69,1,69,1,69,1,70,1,
44
- 70,1,70,1,70,3,70,539,8,70,1,70,1,70,1,70,3,70,544,8,70,1,71,1,71,1,71,4,
45
- 71,549,8,71,11,71,12,71,550,1,72,1,72,1,72,3,72,556,8,72,1,73,1,73,5,73,
46
- 560,8,73,10,73,12,73,563,9,73,1,74,1,74,3,74,567,8,74,1,74,3,74,570,8,74,
47
- 1,453,0,75,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,
48
- 13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,
49
- 25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,
50
- 37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,
51
- 49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,
52
- 119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,0,135,0,137,0,139,0,
53
- 141,0,143,0,145,0,147,0,149,0,1,0,12,4,0,10,10,13,13,47,47,92,92,2,0,9,9,
54
- 32,32,4,0,10,10,13,13,34,34,92,92,3,0,65,90,95,95,97,122,4,0,48,57,65,90,
55
- 95,95,97,122,1,0,49,57,1,0,48,57,2,0,69,69,101,101,2,0,43,43,45,45,2,0,88,
56
- 88,120,120,3,0,48,57,65,70,97,102,1,0,48,55,604,0,1,1,0,0,0,0,3,1,0,0,0,
57
- 0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,
58
- 0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,
59
- 1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,
60
- 0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,
61
- 0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,
62
- 61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,
63
- 0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,
64
- 1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,
65
- 0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,
66
- 1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,
67
- 0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,
68
- 0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,1,151,1,0,0,0,3,153,1,0,0,
69
- 0,5,155,1,0,0,0,7,157,1,0,0,0,9,159,1,0,0,0,11,161,1,0,0,0,13,163,1,0,0,
70
- 0,15,165,1,0,0,0,17,167,1,0,0,0,19,169,1,0,0,0,21,171,1,0,0,0,23,173,1,0,
71
- 0,0,25,175,1,0,0,0,27,177,1,0,0,0,29,179,1,0,0,0,31,181,1,0,0,0,33,183,1,
72
- 0,0,0,35,185,1,0,0,0,37,187,1,0,0,0,39,189,1,0,0,0,41,191,1,0,0,0,43,193,
73
- 1,0,0,0,45,195,1,0,0,0,47,197,1,0,0,0,49,203,1,0,0,0,51,209,1,0,0,0,53,218,
74
- 1,0,0,0,55,225,1,0,0,0,57,228,1,0,0,0,59,233,1,0,0,0,61,237,1,0,0,0,63,242,
75
- 1,0,0,0,65,246,1,0,0,0,67,255,1,0,0,0,69,263,1,0,0,0,71,266,1,0,0,0,73,269,
76
- 1,0,0,0,75,274,1,0,0,0,77,280,1,0,0,0,79,287,1,0,0,0,81,294,1,0,0,0,83,399,
77
- 1,0,0,0,85,401,1,0,0,0,87,404,1,0,0,0,89,407,1,0,0,0,91,410,1,0,0,0,93,413,
78
- 1,0,0,0,95,416,1,0,0,0,97,419,1,0,0,0,99,422,1,0,0,0,101,425,1,0,0,0,103,
79
- 428,1,0,0,0,105,431,1,0,0,0,107,434,1,0,0,0,109,437,1,0,0,0,111,440,1,0,
80
- 0,0,113,443,1,0,0,0,115,446,1,0,0,0,117,449,1,0,0,0,119,460,1,0,0,0,121,
81
- 470,1,0,0,0,123,476,1,0,0,0,125,484,1,0,0,0,127,487,1,0,0,0,129,493,1,0,
82
- 0,0,131,503,1,0,0,0,133,510,1,0,0,0,135,518,1,0,0,0,137,522,1,0,0,0,139,
83
- 528,1,0,0,0,141,543,1,0,0,0,143,545,1,0,0,0,145,552,1,0,0,0,147,557,1,0,
84
- 0,0,149,564,1,0,0,0,151,152,5,40,0,0,152,2,1,0,0,0,153,154,5,41,0,0,154,
85
- 4,1,0,0,0,155,156,5,44,0,0,156,6,1,0,0,0,157,158,5,123,0,0,158,8,1,0,0,0,
86
- 159,160,5,125,0,0,160,10,1,0,0,0,161,162,5,59,0,0,162,12,1,0,0,0,163,164,
87
- 5,91,0,0,164,14,1,0,0,0,165,166,5,93,0,0,166,16,1,0,0,0,167,168,5,62,0,0,
88
- 168,18,1,0,0,0,169,170,5,124,0,0,170,20,1,0,0,0,171,172,5,43,0,0,172,22,
89
- 1,0,0,0,173,174,5,45,0,0,174,24,1,0,0,0,175,176,5,94,0,0,176,26,1,0,0,0,
90
- 177,178,5,42,0,0,178,28,1,0,0,0,179,180,5,47,0,0,180,30,1,0,0,0,181,182,
91
- 5,37,0,0,182,32,1,0,0,0,183,184,5,60,0,0,184,34,1,0,0,0,185,186,5,126,0,
92
- 0,186,36,1,0,0,0,187,188,5,63,0,0,188,38,1,0,0,0,189,190,5,58,0,0,190,40,
93
- 1,0,0,0,191,192,5,33,0,0,192,42,1,0,0,0,193,194,5,61,0,0,194,44,1,0,0,0,
94
- 195,196,5,36,0,0,196,46,1,0,0,0,197,198,5,66,0,0,198,199,5,69,0,0,199,200,
95
- 5,71,0,0,200,201,5,73,0,0,201,202,5,78,0,0,202,48,1,0,0,0,203,204,5,98,0,
96
- 0,204,205,5,114,0,0,205,206,5,101,0,0,206,207,5,97,0,0,207,208,5,107,0,0,
97
- 208,50,1,0,0,0,209,210,5,99,0,0,210,211,5,111,0,0,211,212,5,110,0,0,212,
98
- 213,5,116,0,0,213,214,5,105,0,0,214,215,5,110,0,0,215,216,5,117,0,0,216,
99
- 217,5,101,0,0,217,52,1,0,0,0,218,219,5,100,0,0,219,220,5,101,0,0,220,221,
100
- 5,108,0,0,221,222,5,101,0,0,222,223,5,116,0,0,223,224,5,101,0,0,224,54,1,
101
- 0,0,0,225,226,5,100,0,0,226,227,5,111,0,0,227,56,1,0,0,0,228,229,5,101,0,
102
- 0,229,230,5,108,0,0,230,231,5,115,0,0,231,232,5,101,0,0,232,58,1,0,0,0,233,
103
- 234,5,69,0,0,234,235,5,78,0,0,235,236,5,68,0,0,236,60,1,0,0,0,237,238,5,
104
- 101,0,0,238,239,5,120,0,0,239,240,5,105,0,0,240,241,5,116,0,0,241,62,1,0,
105
- 0,0,242,243,5,102,0,0,243,244,5,111,0,0,244,245,5,114,0,0,245,64,1,0,0,0,
106
- 246,247,5,102,0,0,247,248,5,117,0,0,248,249,5,110,0,0,249,250,5,99,0,0,250,
107
- 251,5,116,0,0,251,252,5,105,0,0,252,253,5,111,0,0,253,254,5,110,0,0,254,
108
- 66,1,0,0,0,255,256,5,103,0,0,256,257,5,101,0,0,257,258,5,116,0,0,258,259,
109
- 5,108,0,0,259,260,5,105,0,0,260,261,5,110,0,0,261,262,5,101,0,0,262,68,1,
110
- 0,0,0,263,264,5,105,0,0,264,265,5,102,0,0,265,70,1,0,0,0,266,267,5,105,0,
111
- 0,267,268,5,110,0,0,268,72,1,0,0,0,269,270,5,110,0,0,270,271,5,101,0,0,271,
112
- 272,5,120,0,0,272,273,5,116,0,0,273,74,1,0,0,0,274,275,5,112,0,0,275,276,
113
- 5,114,0,0,276,277,5,105,0,0,277,278,5,110,0,0,278,279,5,116,0,0,279,76,1,
114
- 0,0,0,280,281,5,112,0,0,281,282,5,114,0,0,282,283,5,105,0,0,283,284,5,110,
115
- 0,0,284,285,5,116,0,0,285,286,5,102,0,0,286,78,1,0,0,0,287,288,5,114,0,0,
116
- 288,289,5,101,0,0,289,290,5,116,0,0,290,291,5,117,0,0,291,292,5,114,0,0,
117
- 292,293,5,110,0,0,293,80,1,0,0,0,294,295,5,119,0,0,295,296,5,104,0,0,296,
118
- 297,5,105,0,0,297,298,5,108,0,0,298,299,5,101,0,0,299,82,1,0,0,0,300,301,
119
- 5,97,0,0,301,302,5,116,0,0,302,303,5,97,0,0,303,304,5,110,0,0,304,400,5,
120
- 50,0,0,305,306,5,99,0,0,306,307,5,108,0,0,307,308,5,111,0,0,308,309,5,115,
121
- 0,0,309,400,5,101,0,0,310,311,5,99,0,0,311,312,5,111,0,0,312,400,5,115,0,
122
- 0,313,314,5,101,0,0,314,315,5,120,0,0,315,400,5,112,0,0,316,317,5,103,0,
123
- 0,317,318,5,115,0,0,318,319,5,117,0,0,319,400,5,98,0,0,320,321,5,105,0,0,
124
- 321,322,5,110,0,0,322,323,5,100,0,0,323,324,5,101,0,0,324,400,5,120,0,0,
125
- 325,326,5,105,0,0,326,327,5,110,0,0,327,400,5,116,0,0,328,329,5,108,0,0,
126
- 329,330,5,101,0,0,330,331,5,110,0,0,331,332,5,103,0,0,332,333,5,116,0,0,
127
- 333,400,5,104,0,0,334,335,5,108,0,0,335,336,5,111,0,0,336,400,5,103,0,0,
128
- 337,338,5,109,0,0,338,339,5,97,0,0,339,340,5,116,0,0,340,341,5,99,0,0,341,
129
- 400,5,104,0,0,342,343,5,114,0,0,343,344,5,97,0,0,344,345,5,110,0,0,345,400,
130
- 5,100,0,0,346,347,5,115,0,0,347,348,5,105,0,0,348,400,5,110,0,0,349,350,
131
- 5,115,0,0,350,351,5,112,0,0,351,352,5,108,0,0,352,353,5,105,0,0,353,400,
132
- 5,116,0,0,354,355,5,115,0,0,355,356,5,112,0,0,356,357,5,114,0,0,357,358,
133
- 5,105,0,0,358,359,5,110,0,0,359,360,5,116,0,0,360,400,5,102,0,0,361,362,
134
- 5,115,0,0,362,363,5,113,0,0,363,364,5,114,0,0,364,400,5,116,0,0,365,366,
135
- 5,115,0,0,366,367,5,114,0,0,367,368,5,97,0,0,368,369,5,110,0,0,369,400,5,
136
- 100,0,0,370,371,5,115,0,0,371,372,5,117,0,0,372,400,5,98,0,0,373,374,5,115,
137
- 0,0,374,375,5,117,0,0,375,376,5,98,0,0,376,377,5,115,0,0,377,378,5,116,0,
138
- 0,378,400,5,114,0,0,379,380,5,115,0,0,380,381,5,121,0,0,381,382,5,115,0,
139
- 0,382,383,5,116,0,0,383,384,5,101,0,0,384,400,5,109,0,0,385,386,5,116,0,
140
- 0,386,387,5,111,0,0,387,388,5,108,0,0,388,389,5,111,0,0,389,390,5,119,0,
141
- 0,390,391,5,101,0,0,391,400,5,114,0,0,392,393,5,116,0,0,393,394,5,111,0,
142
- 0,394,395,5,117,0,0,395,396,5,112,0,0,396,397,5,112,0,0,397,398,5,101,0,
143
- 0,398,400,5,114,0,0,399,300,1,0,0,0,399,305,1,0,0,0,399,310,1,0,0,0,399,
144
- 313,1,0,0,0,399,316,1,0,0,0,399,320,1,0,0,0,399,325,1,0,0,0,399,328,1,0,
145
- 0,0,399,334,1,0,0,0,399,337,1,0,0,0,399,342,1,0,0,0,399,346,1,0,0,0,399,
146
- 349,1,0,0,0,399,354,1,0,0,0,399,361,1,0,0,0,399,365,1,0,0,0,399,370,1,0,
147
- 0,0,399,373,1,0,0,0,399,379,1,0,0,0,399,385,1,0,0,0,399,392,1,0,0,0,400,
148
- 84,1,0,0,0,401,402,5,43,0,0,402,403,5,61,0,0,403,86,1,0,0,0,404,405,5,38,
149
- 0,0,405,406,5,38,0,0,406,88,1,0,0,0,407,408,5,62,0,0,408,409,5,62,0,0,409,
150
- 90,1,0,0,0,410,411,5,45,0,0,411,412,5,45,0,0,412,92,1,0,0,0,413,414,5,47,
151
- 0,0,414,415,5,61,0,0,415,94,1,0,0,0,416,417,5,61,0,0,417,418,5,61,0,0,418,
152
- 96,1,0,0,0,419,420,5,62,0,0,420,421,5,61,0,0,421,98,1,0,0,0,422,423,5,43,
153
- 0,0,423,424,5,43,0,0,424,100,1,0,0,0,425,426,5,60,0,0,426,427,5,61,0,0,427,
154
- 102,1,0,0,0,428,429,5,37,0,0,429,430,5,61,0,0,430,104,1,0,0,0,431,432,5,
155
- 42,0,0,432,433,5,61,0,0,433,106,1,0,0,0,434,435,5,33,0,0,435,436,5,61,0,
156
- 0,436,108,1,0,0,0,437,438,5,33,0,0,438,439,5,126,0,0,439,110,1,0,0,0,440,
157
- 441,5,124,0,0,441,442,5,124,0,0,442,112,1,0,0,0,443,444,5,94,0,0,444,445,
158
- 5,61,0,0,445,114,1,0,0,0,446,447,5,45,0,0,447,448,5,61,0,0,448,116,1,0,0,
159
- 0,449,453,5,35,0,0,450,452,9,0,0,0,451,450,1,0,0,0,452,455,1,0,0,0,453,454,
160
- 1,0,0,0,453,451,1,0,0,0,454,456,1,0,0,0,455,453,1,0,0,0,456,457,3,123,61,
161
- 0,457,458,1,0,0,0,458,459,6,58,0,0,459,118,1,0,0,0,460,465,5,47,0,0,461,
162
- 464,8,0,0,0,462,464,3,137,68,0,463,461,1,0,0,0,463,462,1,0,0,0,464,467,1,
163
- 0,0,0,465,463,1,0,0,0,465,466,1,0,0,0,466,468,1,0,0,0,467,465,1,0,0,0,468,
164
- 469,5,47,0,0,469,120,1,0,0,0,470,471,5,92,0,0,471,472,3,123,61,0,472,473,
165
- 1,0,0,0,473,474,6,60,1,0,474,122,1,0,0,0,475,477,5,13,0,0,476,475,1,0,0,
166
- 0,476,477,1,0,0,0,477,478,1,0,0,0,478,479,5,10,0,0,479,124,1,0,0,0,480,485,
167
- 3,133,66,0,481,485,3,141,70,0,482,485,3,143,71,0,483,485,3,147,73,0,484,
168
- 480,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,126,1,0,
169
- 0,0,486,488,7,1,0,0,487,486,1,0,0,0,488,489,1,0,0,0,489,487,1,0,0,0,489,
170
- 490,1,0,0,0,490,491,1,0,0,0,491,492,6,63,1,0,492,128,1,0,0,0,493,498,5,34,
171
- 0,0,494,497,8,2,0,0,495,497,3,137,68,0,496,494,1,0,0,0,496,495,1,0,0,0,497,
172
- 500,1,0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,501,1,0,0,0,500,498,1,0,
173
- 0,0,501,502,5,34,0,0,502,130,1,0,0,0,503,507,7,3,0,0,504,506,7,4,0,0,505,
174
- 504,1,0,0,0,506,509,1,0,0,0,507,505,1,0,0,0,507,508,1,0,0,0,508,132,1,0,
175
- 0,0,509,507,1,0,0,0,510,514,7,5,0,0,511,513,7,6,0,0,512,511,1,0,0,0,513,
176
- 516,1,0,0,0,514,512,1,0,0,0,514,515,1,0,0,0,515,134,1,0,0,0,516,514,1,0,
177
- 0,0,517,519,7,6,0,0,518,517,1,0,0,0,519,520,1,0,0,0,520,518,1,0,0,0,520,
178
- 521,1,0,0,0,521,136,1,0,0,0,522,526,5,92,0,0,523,527,3,145,72,0,524,527,
179
- 3,149,74,0,525,527,9,0,0,0,526,523,1,0,0,0,526,524,1,0,0,0,526,525,1,0,0,
180
- 0,527,138,1,0,0,0,528,530,7,7,0,0,529,531,7,8,0,0,530,529,1,0,0,0,530,531,
181
- 1,0,0,0,531,532,1,0,0,0,532,533,3,135,67,0,533,140,1,0,0,0,534,535,3,135,
182
- 67,0,535,536,5,46,0,0,536,538,3,135,67,0,537,539,3,139,69,0,538,537,1,0,
183
- 0,0,538,539,1,0,0,0,539,544,1,0,0,0,540,541,3,135,67,0,541,542,3,139,69,
184
- 0,542,544,1,0,0,0,543,534,1,0,0,0,543,540,1,0,0,0,544,142,1,0,0,0,545,546,
185
- 5,48,0,0,546,548,7,9,0,0,547,549,7,10,0,0,548,547,1,0,0,0,549,550,1,0,0,
186
- 0,550,548,1,0,0,0,550,551,1,0,0,0,551,144,1,0,0,0,552,553,7,9,0,0,553,555,
187
- 7,10,0,0,554,556,7,10,0,0,555,554,1,0,0,0,555,556,1,0,0,0,556,146,1,0,0,
188
- 0,557,561,5,48,0,0,558,560,7,11,0,0,559,558,1,0,0,0,560,563,1,0,0,0,561,
189
- 559,1,0,0,0,561,562,1,0,0,0,562,148,1,0,0,0,563,561,1,0,0,0,564,566,7,11,
190
- 0,0,565,567,7,11,0,0,566,565,1,0,0,0,566,567,1,0,0,0,567,569,1,0,0,0,568,
191
- 570,7,11,0,0,569,568,1,0,0,0,569,570,1,0,0,0,570,150,1,0,0,0,22,0,399,453,
192
- 463,465,476,484,489,496,498,507,514,520,526,530,538,543,550,555,561,566,
193
- 569,2,0,1,0,6,0,0];
194
-
195
-
196
- const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
197
-
198
- const decisionsToDFA = atn.decisionToState.map( (ds, index) => new antlr4.dfa.DFA(ds, index) );
199
-
200
- export default class awkLexer extends antlr4.Lexer {
201
-
202
- static grammarFileName = "awk.g4";
203
- static channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
204
- static modeNames = [ "DEFAULT_MODE" ];
205
- static literalNames = [ null, "'('", "')'", "','", "'{'", "'}'", "';'",
206
- "'['", "']'", "'>'", "'|'", "'+'", "'-'", "'^'",
207
- "'*'", "'/'", "'%'", "'<'", "'~'", "'?'", "':'",
208
- "'!'", "'='", "'$'", "'BEGIN'", "'break'", "'continue'",
209
- "'delete'", "'do'", "'else'", "'END'", "'exit'",
210
- "'for'", "'function'", "'getline'", "'if'", "'in'",
211
- "'next'", "'print'", "'printf'", "'return'", "'while'",
212
- null, "'+='", "'&&'", "'>>'", "'--'", "'/='", "'=='",
213
- "'>='", "'++'", "'<='", "'%='", "'*='", "'!='",
214
- "'!~'", "'||'", "'^='", "'-='" ];
215
- static symbolicNames = [ null, null, null, null, null, null, null, null,
216
- null, null, null, null, null, null, null, null,
217
- null, null, null, null, null, null, null, null,
218
- "BEGIN", "BREAK", "CONTINUE", "DELETE", "DO",
219
- "ELSE", "END", "EXIT", "FOR", "FUNCTION", "GETLINE",
220
- "IF", "IN", "NEXT", "PRINT", "PRINTF", "RETURN",
221
- "WHILE", "BUILTIN_FUNC_NAME", "ADD_ASSIGN", "AND",
222
- "APPEND", "DECR", "DIV_ASSIGN", "EQ", "GE", "INCR",
223
- "LE", "MOD_ASSIGN", "MUL_ASSIGN", "NE", "NO_MATCH",
224
- "OR", "POW_ASSIGN", "SUB_ASSIGN", "COMMENT", "ERE",
225
- "ESC_NEWLINE", "NEWLINE", "NUMBER", "SPACE", "STRING",
226
- "WORD" ];
227
- static ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
228
- "T__7", "T__8", "T__9", "T__10", "T__11", "T__12",
229
- "T__13", "T__14", "T__15", "T__16", "T__17", "T__18",
230
- "T__19", "T__20", "T__21", "T__22", "BEGIN", "BREAK",
231
- "CONTINUE", "DELETE", "DO", "ELSE", "END", "EXIT",
232
- "FOR", "FUNCTION", "GETLINE", "IF", "IN", "NEXT",
233
- "PRINT", "PRINTF", "RETURN", "WHILE", "BUILTIN_FUNC_NAME",
234
- "ADD_ASSIGN", "AND", "APPEND", "DECR", "DIV_ASSIGN",
235
- "EQ", "GE", "INCR", "LE", "MOD_ASSIGN", "MUL_ASSIGN",
236
- "NE", "NO_MATCH", "OR", "POW_ASSIGN", "SUB_ASSIGN",
237
- "COMMENT", "ERE", "ESC_NEWLINE", "NEWLINE", "NUMBER",
238
- "SPACE", "STRING", "WORD", "DECIMAL_CONSTANT", "DIGIT_SEQUENCE",
239
- "ESCAPE_SEQUENCE", "EXPONENT_PART", "FLOAT_CONSTANT",
240
- "HEX_CONSTANT", "HEX_NUMBER", "OCTAL_CONSTANT", "OCTAL_NUMBER" ];
241
-
242
- constructor(input) {
243
- super(input)
244
- this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.atn.PredictionContextCache());
245
- }
246
- }
247
-
248
- awkLexer.EOF = antlr4.Token.EOF;
249
- awkLexer.T__0 = 1;
250
- awkLexer.T__1 = 2;
251
- awkLexer.T__2 = 3;
252
- awkLexer.T__3 = 4;
253
- awkLexer.T__4 = 5;
254
- awkLexer.T__5 = 6;
255
- awkLexer.T__6 = 7;
256
- awkLexer.T__7 = 8;
257
- awkLexer.T__8 = 9;
258
- awkLexer.T__9 = 10;
259
- awkLexer.T__10 = 11;
260
- awkLexer.T__11 = 12;
261
- awkLexer.T__12 = 13;
262
- awkLexer.T__13 = 14;
263
- awkLexer.T__14 = 15;
264
- awkLexer.T__15 = 16;
265
- awkLexer.T__16 = 17;
266
- awkLexer.T__17 = 18;
267
- awkLexer.T__18 = 19;
268
- awkLexer.T__19 = 20;
269
- awkLexer.T__20 = 21;
270
- awkLexer.T__21 = 22;
271
- awkLexer.T__22 = 23;
272
- awkLexer.BEGIN = 24;
273
- awkLexer.BREAK = 25;
274
- awkLexer.CONTINUE = 26;
275
- awkLexer.DELETE = 27;
276
- awkLexer.DO = 28;
277
- awkLexer.ELSE = 29;
278
- awkLexer.END = 30;
279
- awkLexer.EXIT = 31;
280
- awkLexer.FOR = 32;
281
- awkLexer.FUNCTION = 33;
282
- awkLexer.GETLINE = 34;
283
- awkLexer.IF = 35;
284
- awkLexer.IN = 36;
285
- awkLexer.NEXT = 37;
286
- awkLexer.PRINT = 38;
287
- awkLexer.PRINTF = 39;
288
- awkLexer.RETURN = 40;
289
- awkLexer.WHILE = 41;
290
- awkLexer.BUILTIN_FUNC_NAME = 42;
291
- awkLexer.ADD_ASSIGN = 43;
292
- awkLexer.AND = 44;
293
- awkLexer.APPEND = 45;
294
- awkLexer.DECR = 46;
295
- awkLexer.DIV_ASSIGN = 47;
296
- awkLexer.EQ = 48;
297
- awkLexer.GE = 49;
298
- awkLexer.INCR = 50;
299
- awkLexer.LE = 51;
300
- awkLexer.MOD_ASSIGN = 52;
301
- awkLexer.MUL_ASSIGN = 53;
302
- awkLexer.NE = 54;
303
- awkLexer.NO_MATCH = 55;
304
- awkLexer.OR = 56;
305
- awkLexer.POW_ASSIGN = 57;
306
- awkLexer.SUB_ASSIGN = 58;
307
- awkLexer.COMMENT = 59;
308
- awkLexer.ERE = 60;
309
- awkLexer.ESC_NEWLINE = 61;
310
- awkLexer.NEWLINE = 62;
311
- awkLexer.NUMBER = 63;
312
- awkLexer.SPACE = 64;
313
- awkLexer.STRING = 65;
314
- awkLexer.WORD = 66;
315
-
316
-
317
-
@@ -1,378 +0,0 @@
1
- // Generated from awk.g4 by ANTLR 4.13.2
2
- // jshint ignore: start
3
- import antlr4 from 'antlr4';
4
-
5
- // This class defines a complete listener for a parse tree produced by awkParser.
6
- export default class awkListener extends antlr4.tree.ParseTreeListener {
7
-
8
- // Enter a parse tree produced by awkParser#program.
9
- enterProgram(ctx) {
10
- }
11
-
12
- // Exit a parse tree produced by awkParser#program.
13
- exitProgram(ctx) {
14
- }
15
-
16
-
17
- // Enter a parse tree produced by awkParser#item_list.
18
- enterItem_list(ctx) {
19
- }
20
-
21
- // Exit a parse tree produced by awkParser#item_list.
22
- exitItem_list(ctx) {
23
- }
24
-
25
-
26
- // Enter a parse tree produced by awkParser#item.
27
- enterItem(ctx) {
28
- }
29
-
30
- // Exit a parse tree produced by awkParser#item.
31
- exitItem(ctx) {
32
- }
33
-
34
-
35
- // Enter a parse tree produced by awkParser#param_list_opt.
36
- enterParam_list_opt(ctx) {
37
- }
38
-
39
- // Exit a parse tree produced by awkParser#param_list_opt.
40
- exitParam_list_opt(ctx) {
41
- }
42
-
43
-
44
- // Enter a parse tree produced by awkParser#param_list.
45
- enterParam_list(ctx) {
46
- }
47
-
48
- // Exit a parse tree produced by awkParser#param_list.
49
- exitParam_list(ctx) {
50
- }
51
-
52
-
53
- // Enter a parse tree produced by awkParser#pattern.
54
- enterPattern(ctx) {
55
- }
56
-
57
- // Exit a parse tree produced by awkParser#pattern.
58
- exitPattern(ctx) {
59
- }
60
-
61
-
62
- // Enter a parse tree produced by awkParser#normal_pattern.
63
- enterNormal_pattern(ctx) {
64
- }
65
-
66
- // Exit a parse tree produced by awkParser#normal_pattern.
67
- exitNormal_pattern(ctx) {
68
- }
69
-
70
-
71
- // Enter a parse tree produced by awkParser#special_pattern.
72
- enterSpecial_pattern(ctx) {
73
- }
74
-
75
- // Exit a parse tree produced by awkParser#special_pattern.
76
- exitSpecial_pattern(ctx) {
77
- }
78
-
79
-
80
- // Enter a parse tree produced by awkParser#action_.
81
- enterAction_(ctx) {
82
- }
83
-
84
- // Exit a parse tree produced by awkParser#action_.
85
- exitAction_(ctx) {
86
- }
87
-
88
-
89
- // Enter a parse tree produced by awkParser#terminator.
90
- enterTerminator(ctx) {
91
- }
92
-
93
- // Exit a parse tree produced by awkParser#terminator.
94
- exitTerminator(ctx) {
95
- }
96
-
97
-
98
- // Enter a parse tree produced by awkParser#terminated_statement_list.
99
- enterTerminated_statement_list(ctx) {
100
- }
101
-
102
- // Exit a parse tree produced by awkParser#terminated_statement_list.
103
- exitTerminated_statement_list(ctx) {
104
- }
105
-
106
-
107
- // Enter a parse tree produced by awkParser#unterminated_statement_list.
108
- enterUnterminated_statement_list(ctx) {
109
- }
110
-
111
- // Exit a parse tree produced by awkParser#unterminated_statement_list.
112
- exitUnterminated_statement_list(ctx) {
113
- }
114
-
115
-
116
- // Enter a parse tree produced by awkParser#terminated_statement.
117
- enterTerminated_statement(ctx) {
118
- }
119
-
120
- // Exit a parse tree produced by awkParser#terminated_statement.
121
- exitTerminated_statement(ctx) {
122
- }
123
-
124
-
125
- // Enter a parse tree produced by awkParser#unterminated_statement.
126
- enterUnterminated_statement(ctx) {
127
- }
128
-
129
- // Exit a parse tree produced by awkParser#unterminated_statement.
130
- exitUnterminated_statement(ctx) {
131
- }
132
-
133
-
134
- // Enter a parse tree produced by awkParser#terminatable_statement.
135
- enterTerminatable_statement(ctx) {
136
- }
137
-
138
- // Exit a parse tree produced by awkParser#terminatable_statement.
139
- exitTerminatable_statement(ctx) {
140
- }
141
-
142
-
143
- // Enter a parse tree produced by awkParser#simple_statement_opt.
144
- enterSimple_statement_opt(ctx) {
145
- }
146
-
147
- // Exit a parse tree produced by awkParser#simple_statement_opt.
148
- exitSimple_statement_opt(ctx) {
149
- }
150
-
151
-
152
- // Enter a parse tree produced by awkParser#simple_statement.
153
- enterSimple_statement(ctx) {
154
- }
155
-
156
- // Exit a parse tree produced by awkParser#simple_statement.
157
- exitSimple_statement(ctx) {
158
- }
159
-
160
-
161
- // Enter a parse tree produced by awkParser#print_statement.
162
- enterPrint_statement(ctx) {
163
- }
164
-
165
- // Exit a parse tree produced by awkParser#print_statement.
166
- exitPrint_statement(ctx) {
167
- }
168
-
169
-
170
- // Enter a parse tree produced by awkParser#simple_print_statement.
171
- enterSimple_print_statement(ctx) {
172
- }
173
-
174
- // Exit a parse tree produced by awkParser#simple_print_statement.
175
- exitSimple_print_statement(ctx) {
176
- }
177
-
178
-
179
- // Enter a parse tree produced by awkParser#output_redirection.
180
- enterOutput_redirection(ctx) {
181
- }
182
-
183
- // Exit a parse tree produced by awkParser#output_redirection.
184
- exitOutput_redirection(ctx) {
185
- }
186
-
187
-
188
- // Enter a parse tree produced by awkParser#expr_list_opt.
189
- enterExpr_list_opt(ctx) {
190
- }
191
-
192
- // Exit a parse tree produced by awkParser#expr_list_opt.
193
- exitExpr_list_opt(ctx) {
194
- }
195
-
196
-
197
- // Enter a parse tree produced by awkParser#expr_list.
198
- enterExpr_list(ctx) {
199
- }
200
-
201
- // Exit a parse tree produced by awkParser#expr_list.
202
- exitExpr_list(ctx) {
203
- }
204
-
205
-
206
- // Enter a parse tree produced by awkParser#multiple_expr_list.
207
- enterMultiple_expr_list(ctx) {
208
- }
209
-
210
- // Exit a parse tree produced by awkParser#multiple_expr_list.
211
- exitMultiple_expr_list(ctx) {
212
- }
213
-
214
-
215
- // Enter a parse tree produced by awkParser#expr_opt.
216
- enterExpr_opt(ctx) {
217
- }
218
-
219
- // Exit a parse tree produced by awkParser#expr_opt.
220
- exitExpr_opt(ctx) {
221
- }
222
-
223
-
224
- // Enter a parse tree produced by awkParser#expr.
225
- enterExpr(ctx) {
226
- }
227
-
228
- // Exit a parse tree produced by awkParser#expr.
229
- exitExpr(ctx) {
230
- }
231
-
232
-
233
- // Enter a parse tree produced by awkParser#unary_expr.
234
- enterUnary_expr(ctx) {
235
- }
236
-
237
- // Exit a parse tree produced by awkParser#unary_expr.
238
- exitUnary_expr(ctx) {
239
- }
240
-
241
-
242
- // Enter a parse tree produced by awkParser#non_unary_expr.
243
- enterNon_unary_expr(ctx) {
244
- }
245
-
246
- // Exit a parse tree produced by awkParser#non_unary_expr.
247
- exitNon_unary_expr(ctx) {
248
- }
249
-
250
-
251
- // Enter a parse tree produced by awkParser#print_expr_list_opt.
252
- enterPrint_expr_list_opt(ctx) {
253
- }
254
-
255
- // Exit a parse tree produced by awkParser#print_expr_list_opt.
256
- exitPrint_expr_list_opt(ctx) {
257
- }
258
-
259
-
260
- // Enter a parse tree produced by awkParser#print_expr_list.
261
- enterPrint_expr_list(ctx) {
262
- }
263
-
264
- // Exit a parse tree produced by awkParser#print_expr_list.
265
- exitPrint_expr_list(ctx) {
266
- }
267
-
268
-
269
- // Enter a parse tree produced by awkParser#print_expr.
270
- enterPrint_expr(ctx) {
271
- }
272
-
273
- // Exit a parse tree produced by awkParser#print_expr.
274
- exitPrint_expr(ctx) {
275
- }
276
-
277
-
278
- // Enter a parse tree produced by awkParser#unary_print_expr.
279
- enterUnary_print_expr(ctx) {
280
- }
281
-
282
- // Exit a parse tree produced by awkParser#unary_print_expr.
283
- exitUnary_print_expr(ctx) {
284
- }
285
-
286
-
287
- // Enter a parse tree produced by awkParser#non_unary_print_expr.
288
- enterNon_unary_print_expr(ctx) {
289
- }
290
-
291
- // Exit a parse tree produced by awkParser#non_unary_print_expr.
292
- exitNon_unary_print_expr(ctx) {
293
- }
294
-
295
-
296
- // Enter a parse tree produced by awkParser#lvalue.
297
- enterLvalue(ctx) {
298
- }
299
-
300
- // Exit a parse tree produced by awkParser#lvalue.
301
- exitLvalue(ctx) {
302
- }
303
-
304
-
305
- // Enter a parse tree produced by awkParser#simple_get.
306
- enterSimple_get(ctx) {
307
- }
308
-
309
- // Exit a parse tree produced by awkParser#simple_get.
310
- exitSimple_get(ctx) {
311
- }
312
-
313
-
314
- // Enter a parse tree produced by awkParser#newline_opt.
315
- enterNewline_opt(ctx) {
316
- }
317
-
318
- // Exit a parse tree produced by awkParser#newline_opt.
319
- exitNewline_opt(ctx) {
320
- }
321
-
322
-
323
- // Enter a parse tree produced by awkParser#number.
324
- enterNumber(ctx) {
325
- }
326
-
327
- // Exit a parse tree produced by awkParser#number.
328
- exitNumber(ctx) {
329
- }
330
-
331
-
332
- // Enter a parse tree produced by awkParser#string.
333
- enterString(ctx) {
334
- }
335
-
336
- // Exit a parse tree produced by awkParser#string.
337
- exitString(ctx) {
338
- }
339
-
340
-
341
- // Enter a parse tree produced by awkParser#ere.
342
- enterEre(ctx) {
343
- }
344
-
345
- // Exit a parse tree produced by awkParser#ere.
346
- exitEre(ctx) {
347
- }
348
-
349
-
350
- // Enter a parse tree produced by awkParser#builtin_func_name.
351
- enterBuiltin_func_name(ctx) {
352
- }
353
-
354
- // Exit a parse tree produced by awkParser#builtin_func_name.
355
- exitBuiltin_func_name(ctx) {
356
- }
357
-
358
-
359
- // Enter a parse tree produced by awkParser#func_name.
360
- enterFunc_name(ctx) {
361
- }
362
-
363
- // Exit a parse tree produced by awkParser#func_name.
364
- exitFunc_name(ctx) {
365
- }
366
-
367
-
368
- // Enter a parse tree produced by awkParser#name.
369
- enterName(ctx) {
370
- }
371
-
372
- // Exit a parse tree produced by awkParser#name.
373
- exitName(ctx) {
374
- }
375
-
376
-
377
-
378
- }