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,34 @@
1
+ import antlr4 from 'antlr4';
2
+ import JavaScriptParser from './XPath4Parser.js';
3
+
4
+ export default class XPath4ParserBase extends antlr4.Parser {
5
+
6
+ constructor(input) {
7
+ super(input);
8
+ }
9
+
10
+ IsFuncCall() {
11
+ const nextTokenType = this._input.LT(1).type;
12
+ return !(
13
+ nextTokenType == this.KW_ARRAY
14
+ || nextTokenType == this.KW_ATTRIBUTE
15
+ || nextTokenType == this.KW_COMMENT
16
+ || nextTokenType == this.KW_DOCUMENT_NODE
17
+ || nextTokenType == this.KW_ELEMENT
18
+ || nextTokenType == this.KW_EMPTY_SEQUENCE
19
+ || nextTokenType == this.KW_FN
20
+ || nextTokenType == this.KW_FUNCTION
21
+ || nextTokenType == this.KW_GNODE
22
+ || nextTokenType == this.KW_JNODE
23
+ || nextTokenType == this.KW_IF
24
+ || nextTokenType == this.KW_ITEM
25
+ || nextTokenType == this.KW_MAP
26
+ || nextTokenType == this.KW_NAMESPACE_NODE
27
+ || nextTokenType == this.KW_NODE
28
+ || nextTokenType == this.KW_PROCESSING_INSTRUCTION
29
+ || nextTokenType == this.KW_SCHEMA_ATTRIBUTE
30
+ || nextTokenType == this.KW_SCHEMA_ELEMENT
31
+ || nextTokenType == this.KW_TEXT
32
+ );
33
+ }
34
+ }