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,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
+ }