cariboujs 2.0.7 → 2.0.9

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 (61) hide show
  1. package/README.md +6 -4
  2. package/asm/asm8080/asm8080Lexer.js +253 -152
  3. package/asm/asm8080/asm8080Listener.js +72 -0
  4. package/asm/asm8080/asm8080Parser.js +1307 -289
  5. package/asm/asm8080/asm8080Visitor.js +48 -0
  6. package/asm/asmZ80/asmZ80Lexer.js +152 -128
  7. package/asm/asmZ80/asmZ80Listener.js +9 -0
  8. package/asm/asmZ80/asmZ80Parser.js +316 -170
  9. package/asm/asmZ80/asmZ80Visitor.js +6 -0
  10. package/c/CParser.js +1352 -1344
  11. package/clif/CLIFLexer.js +173 -0
  12. package/clif/CLIFListener.js +198 -0
  13. package/clif/CLIFParser.js +2440 -0
  14. package/clif/CLIFVisitor.js +136 -0
  15. package/cypher/CypherLexer.js +208 -205
  16. package/cypher/CypherParser.js +1180 -984
  17. package/cypher/CypherParserListener.js +18 -0
  18. package/cypher/CypherParserVisitor.js +12 -0
  19. package/javascript/javascript/JavaScriptParser.js +607 -658
  20. package/javascript/javascript/JavaScriptParserListener.js +0 -9
  21. package/javascript/javascript/JavaScriptParserVisitor.js +0 -6
  22. package/package.json +1 -1
  23. package/promql/PromQLLexer.js +147 -142
  24. package/python/python3_14/PythonLexer.js +1238 -0
  25. package/python/python3_14/PythonLexerBase.js +819 -0
  26. package/python/{python3_13 → python3_14}/PythonParser.js +4141 -3347
  27. package/python/{python3_13 → python3_14}/PythonParserListener.js +81 -0
  28. package/python/{python3_13 → python3_14}/PythonParserVisitor.js +54 -0
  29. package/sql/mysql/Oracle/MySQLParser.js +3934 -3927
  30. package/sql/plsql/PlSqlLexer.js +12212 -12202
  31. package/sql/plsql/PlSqlParser.js +45094 -39280
  32. package/sql/plsql/PlSqlParserBase.js +31 -0
  33. package/sql/plsql/PlSqlParserListener.js +76 -4
  34. package/sql/plsql/PlSqlParserVisitor.js +50 -2
  35. package/sysml-v2/SysMLv2Lexer.js +617 -605
  36. package/sysml-v2/SysMLv2Parser.js +7135 -10083
  37. package/sysml-v2/SysMLv2ParserListener.js +45 -423
  38. package/sysml-v2/SysMLv2ParserVisitor.js +30 -282
  39. package/wkt/wktLexer.js +502 -173
  40. package/wkt/wktParser.js +7220 -1311
  41. package/wkt/wktParserListener.js +756 -0
  42. package/wkt/wktParserVisitor.js +508 -0
  43. package/xpath/xpath4/XPath4Lexer.js +667 -0
  44. package/xpath/xpath4/XPath4Parser.js +17424 -0
  45. package/xpath/xpath4/XPath4ParserBase.js +34 -0
  46. package/xpath/xpath4/XPath4ParserListener.js +1521 -0
  47. package/xpath/xpath4/XPath4ParserVisitor.js +1018 -0
  48. package/xquery/xquery4/XQuery4Lexer.js +1396 -0
  49. package/xquery/xquery4/XQuery4LexerBase.js +42 -0
  50. package/xquery/xquery4/XQuery4Parser.js +27899 -0
  51. package/xquery/xquery4/XQuery4ParserBase.js +38 -0
  52. package/xquery/xquery4/XQuery4ParserListener.js +2322 -0
  53. package/xquery/xquery4/XQuery4ParserVisitor.js +1552 -0
  54. package/awk/awkLexer.js +0 -317
  55. package/awk/awkListener.js +0 -378
  56. package/awk/awkParser.js +0 -5859
  57. package/awk/awkVisitor.js +0 -256
  58. package/python/python3_13/PythonLexer.js +0 -974
  59. package/python/python3_13/PythonLexerBase.js +0 -676
  60. package/wkt/wktListener.js +0 -261
  61. package/wkt/wktVisitor.js +0 -178
@@ -0,0 +1,42 @@
1
+ import antlr4 from 'antlr4';
2
+
3
+ export default class XQuery4LexerBase extends antlr4.Lexer {
4
+
5
+ constructor(input) {
6
+ super(input);
7
+ }
8
+
9
+ // Returns true when the next character is an NCName start character.
10
+ // Used in: '<' { IsNCNameStart() }? -> pushMode(IN_ELEMENT_TAG)
11
+ IsNCNameStart() {
12
+ const c = this._input.LA(1);
13
+ return this._isNCNameStartChar(c);
14
+ }
15
+
16
+ _isNCNameStartChar(c) {
17
+ return (c >= 0x41 && c <= 0x5A) // A-Z
18
+ || c === 0x5F // _
19
+ || (c >= 0x61 && c <= 0x7A) // a-z
20
+ || (c >= 0x00C0 && c <= 0x00D6)
21
+ || (c >= 0x00D8 && c <= 0x00F6)
22
+ || (c >= 0x00F8 && c <= 0x02FF)
23
+ || (c >= 0x0370 && c <= 0x037D)
24
+ || (c >= 0x037F && c <= 0x1FFF)
25
+ || (c >= 0x200C && c <= 0x200D)
26
+ || (c >= 0x2070 && c <= 0x218F)
27
+ || (c >= 0x2C00 && c <= 0x2FEF)
28
+ || (c >= 0x3001 && c <= 0xD7FF)
29
+ || (c >= 0xF900 && c <= 0xFDCF)
30
+ || (c >= 0xFDF0 && c <= 0xFFFD)
31
+ || (c >= 0x10000 && c <= 0xEFFFF);
32
+ }
33
+
34
+ // Pops the mode stack when inside an embedded expression in element/attribute content.
35
+ // Called by: '}' { PopModeIfNeeded(); }
36
+ // When in root DEFAULT_MODE (stack empty), this is a no-op.
37
+ PopModeIfNeeded() {
38
+ if (this._modeStack.length > 0) {
39
+ this.popMode();
40
+ }
41
+ }
42
+ }