cariboujs 2.0.7 → 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 (46) hide show
  1. package/README.md +4 -3
  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/cypher/CypherLexer.js +208 -205
  12. package/cypher/CypherParser.js +1180 -984
  13. package/cypher/CypherParserListener.js +18 -0
  14. package/cypher/CypherParserVisitor.js +12 -0
  15. package/package.json +1 -1
  16. package/python/python3_14/PythonLexer.js +1238 -0
  17. package/python/python3_14/PythonLexerBase.js +819 -0
  18. package/python/{python3_13 → python3_14}/PythonParser.js +4141 -3347
  19. package/python/{python3_13 → python3_14}/PythonParserListener.js +81 -0
  20. package/python/{python3_13 → python3_14}/PythonParserVisitor.js +54 -0
  21. package/sql/plsql/PlSqlLexer.js +4114 -4113
  22. package/sql/plsql/PlSqlParser.js +37074 -31651
  23. package/sql/plsql/PlSqlParserBase.js +31 -0
  24. package/sql/plsql/PlSqlParserListener.js +58 -4
  25. package/sql/plsql/PlSqlParserVisitor.js +38 -2
  26. package/sysml-v2/SysMLv2Lexer.js +617 -605
  27. package/sysml-v2/SysMLv2Parser.js +7135 -10083
  28. package/sysml-v2/SysMLv2ParserListener.js +45 -423
  29. package/sysml-v2/SysMLv2ParserVisitor.js +30 -282
  30. package/xpath/xpath4/XPath4Lexer.js +667 -0
  31. package/xpath/xpath4/XPath4Parser.js +17424 -0
  32. package/xpath/xpath4/XPath4ParserBase.js +34 -0
  33. package/xpath/xpath4/XPath4ParserListener.js +1521 -0
  34. package/xpath/xpath4/XPath4ParserVisitor.js +1018 -0
  35. package/xquery/xquery4/XQuery4Lexer.js +1396 -0
  36. package/xquery/xquery4/XQuery4LexerBase.js +42 -0
  37. package/xquery/xquery4/XQuery4Parser.js +27899 -0
  38. package/xquery/xquery4/XQuery4ParserBase.js +38 -0
  39. package/xquery/xquery4/XQuery4ParserListener.js +2322 -0
  40. package/xquery/xquery4/XQuery4ParserVisitor.js +1552 -0
  41. package/awk/awkLexer.js +0 -317
  42. package/awk/awkListener.js +0 -378
  43. package/awk/awkParser.js +0 -5859
  44. package/awk/awkVisitor.js +0 -256
  45. package/python/python3_13/PythonLexer.js +0 -974
  46. package/python/python3_13/PythonLexerBase.js +0 -676
@@ -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
+ }