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.
- package/README.md +4 -3
- package/asm/asm8080/asm8080Lexer.js +253 -152
- package/asm/asm8080/asm8080Listener.js +72 -0
- package/asm/asm8080/asm8080Parser.js +1307 -289
- package/asm/asm8080/asm8080Visitor.js +48 -0
- package/asm/asmZ80/asmZ80Lexer.js +152 -128
- package/asm/asmZ80/asmZ80Listener.js +9 -0
- package/asm/asmZ80/asmZ80Parser.js +316 -170
- package/asm/asmZ80/asmZ80Visitor.js +6 -0
- package/c/CParser.js +1352 -1344
- package/cypher/CypherLexer.js +208 -205
- package/cypher/CypherParser.js +1180 -984
- package/cypher/CypherParserListener.js +18 -0
- package/cypher/CypherParserVisitor.js +12 -0
- package/package.json +1 -1
- package/python/python3_14/PythonLexer.js +1238 -0
- package/python/python3_14/PythonLexerBase.js +819 -0
- package/python/{python3_13 → python3_14}/PythonParser.js +4141 -3347
- package/python/{python3_13 → python3_14}/PythonParserListener.js +81 -0
- package/python/{python3_13 → python3_14}/PythonParserVisitor.js +54 -0
- package/sql/plsql/PlSqlLexer.js +4114 -4113
- package/sql/plsql/PlSqlParser.js +37074 -31651
- package/sql/plsql/PlSqlParserBase.js +31 -0
- package/sql/plsql/PlSqlParserListener.js +58 -4
- package/sql/plsql/PlSqlParserVisitor.js +38 -2
- package/sysml-v2/SysMLv2Lexer.js +617 -605
- package/sysml-v2/SysMLv2Parser.js +7135 -10083
- package/sysml-v2/SysMLv2ParserListener.js +45 -423
- package/sysml-v2/SysMLv2ParserVisitor.js +30 -282
- package/xpath/xpath4/XPath4Lexer.js +667 -0
- package/xpath/xpath4/XPath4Parser.js +17424 -0
- package/xpath/xpath4/XPath4ParserBase.js +34 -0
- package/xpath/xpath4/XPath4ParserListener.js +1521 -0
- package/xpath/xpath4/XPath4ParserVisitor.js +1018 -0
- package/xquery/xquery4/XQuery4Lexer.js +1396 -0
- package/xquery/xquery4/XQuery4LexerBase.js +42 -0
- package/xquery/xquery4/XQuery4Parser.js +27899 -0
- package/xquery/xquery4/XQuery4ParserBase.js +38 -0
- package/xquery/xquery4/XQuery4ParserListener.js +2322 -0
- package/xquery/xquery4/XQuery4ParserVisitor.js +1552 -0
- package/awk/awkLexer.js +0 -317
- package/awk/awkListener.js +0 -378
- package/awk/awkParser.js +0 -5859
- package/awk/awkVisitor.js +0 -256
- package/python/python3_13/PythonLexer.js +0 -974
- 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
|
+
}
|