cariboujs 2.0.4 → 2.0.5
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 +8 -2
- package/ada/ada2012/AdaLexer.js +486 -316
- package/ada/ada2012/AdaLexerBase.js +25 -0
- package/ada/ada2012/AdaParser.js +4547 -3823
- package/ada/ada2012/AdaParserBase.js +682 -0
- package/ada/ada2012/AdaParserListener.js +36 -0
- package/ada/ada2012/AdaParserVisitor.js +24 -0
- package/ada/ada2012/Symbol.js +20 -0
- package/ada/ada2012/SymbolTable.js +144 -0
- package/ada/ada2012/TypeClassification.js +15 -0
- package/ada/ada2022/AdaLexer.js +699 -0
- package/ada/ada2022/AdaLexerBase.js +25 -0
- package/ada/ada2022/AdaParser.js +37818 -0
- package/ada/ada2022/AdaParserBase.js +686 -0
- package/ada/ada2022/AdaParserListener.js +3024 -0
- package/ada/ada2022/AdaParserVisitor.js +2020 -0
- package/ada/ada2022/Symbol.js +20 -0
- package/ada/ada2022/SymbolTable.js +144 -0
- package/ada/ada2022/TypeClassification.js +15 -0
- package/c/CLexer.js +919 -0
- package/c/CLexerBase.js +96 -0
- package/c/CParser.js +14878 -0
- package/c/CParserBase.js +591 -0
- package/c/CParserListener.js +1062 -0
- package/c/CParserVisitor.js +712 -0
- package/c/ErrorListener.js +50 -0
- package/c/Symbol.js +28 -0
- package/c/SymbolTable.js +215 -0
- package/c/TypeClassification.js +21 -0
- package/cpp/CPP14Parser.js +215 -215
- package/cpp/CPP14ParserListener.js +56 -56
- package/cpp/CPP14ParserVisitor.js +28 -28
- package/csharp/v7/CSharpLexer.js +1339 -0
- package/csharp/v7/CSharpLexerBase.js +332 -0
- package/csharp/v7/CSharpParser.js +29239 -0
- package/csharp/v7/CSharpParserBase.js +48 -0
- package/csharp/v7/CSharpParserListener.js +2304 -0
- package/csharp/v7/CSharpParserVisitor.js +1540 -0
- package/csharp/v8-spec/CSharpLexer.js +1549 -0
- package/csharp/v8-spec/CSharpLexerBase.js +296 -0
- package/csharp/v8-spec/CSharpParser.js +45044 -0
- package/csharp/v8-spec/CSharpParserBase.js +569 -0
- package/csharp/v8-spec/CSharpParserListener.js +3582 -0
- package/csharp/v8-spec/CSharpParserVisitor.js +2392 -0
- package/geekcode/geekcodeLexer.js +232 -0
- package/geekcode/geekcodeListener.js +81 -0
- package/geekcode/geekcodeParser.js +1516 -0
- package/geekcode/geekcodeVisitor.js +58 -0
- package/kotlin/kotlin/KotlinLexer.js +1257 -1247
- package/kotlin/kotlin/KotlinParser.js +3991 -3425
- package/kotlin/kotlin/KotlinParserListener.js +36 -0
- package/kotlin/kotlin/KotlinParserVisitor.js +24 -0
- package/package.json +1 -1
- package/plantUML/PlantUMLLexer.js +215 -316
- package/plantUML/PlantUMLParser.js +1045 -2393
- package/plantUML/PlantUMLParserListener.js +171 -0
- package/plantUML/PlantUMLParserVisitor.js +118 -0
- package/sql/plsql/PlSqlParser.js +27973 -43771
- package/sql/plsql/PlSqlParserBase.js +30 -0
- package/sql/plsql/PlSqlParserListener.js +0 -9
- package/sql/plsql/PlSqlParserVisitor.js +0 -6
- package/sql/snowflake/SnowflakeLexer.js +5675 -5497
- package/sql/snowflake/SnowflakeParser.js +27230 -22653
- package/sql/snowflake/SnowflakeParserListener.js +278 -8
- package/sql/snowflake/SnowflakeParserVisitor.js +184 -4
- package/sql/sqlite/SQLiteParser.js +1115 -1115
- package/sql/sqlite/SQLiteParserListener.js +9 -9
- package/sql/sqlite/SQLiteParserVisitor.js +6 -6
- package/sysml-v2/SysMLv2Lexer.js +1047 -0
- package/sysml-v2/SysMLv2Parser.js +51339 -0
- package/sysml-v2/SysMLv2ParserListener.js +4464 -0
- package/sysml-v2/SysMLv2ParserVisitor.js +2980 -0
- package/plantUML/PlantUMLListener.js +0 -279
- package/plantUML/PlantUMLVisitor.js +0 -190
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import antlr4 from 'antlr4';
|
|
2
2
|
import JavaScriptLexer from './PlSqlParser.js';
|
|
3
|
+
import PlSqlLexer from './PlSqlLexer.js';
|
|
3
4
|
|
|
4
5
|
export default class PlSqlParserBase extends antlr4.Parser {
|
|
5
6
|
_isVersion10;
|
|
@@ -36,4 +37,33 @@ export default class PlSqlParserBase extends antlr4.Parser {
|
|
|
36
37
|
setVersion12(value) {
|
|
37
38
|
this._isVersion12 = value;
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
IsNotNumericFunction() {
|
|
42
|
+
const lt1 = this.getTokenStream().LT(1);
|
|
43
|
+
const lt2 = this.getTokenStream().LT(2);
|
|
44
|
+
if ((lt1.type === PlSqlLexer.SUM ||
|
|
45
|
+
lt1.type === PlSqlLexer.COUNT ||
|
|
46
|
+
lt1.type === PlSqlLexer.AVG ||
|
|
47
|
+
lt1.type === PlSqlLexer.MIN ||
|
|
48
|
+
lt1.type === PlSqlLexer.MAX ||
|
|
49
|
+
lt1.type === PlSqlLexer.ROUND ||
|
|
50
|
+
lt1.type === PlSqlLexer.LEAST ||
|
|
51
|
+
lt1.type === PlSqlLexer.GREATEST) && lt2.type === PlSqlLexer.LEFT_PAREN)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
isNotStartOfJoin() {
|
|
57
|
+
const lt1 = this.getTokenStream().LT(1);
|
|
58
|
+
if (lt1.type == PlSqlLexer.INNER ||
|
|
59
|
+
lt1.type == PlSqlLexer.CROSS ||
|
|
60
|
+
lt1.type == PlSqlLexer.NATURAL ||
|
|
61
|
+
lt1.type == PlSqlLexer.PARTITION ||
|
|
62
|
+
lt1.type == PlSqlLexer.FULL ||
|
|
63
|
+
lt1.type == PlSqlLexer.LEFT ||
|
|
64
|
+
lt1.type == PlSqlLexer.RIGHT ||
|
|
65
|
+
lt1.type == PlSqlLexer.OUTER)
|
|
66
|
+
return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
39
69
|
}
|
|
@@ -10130,15 +10130,6 @@ export default class PlSqlParserListener extends antlr4.tree.ParseTreeListener {
|
|
|
10130
10130
|
}
|
|
10131
10131
|
|
|
10132
10132
|
|
|
10133
|
-
// Enter a parse tree produced by PlSqlParser#sql_plus_command_no_semicolon.
|
|
10134
|
-
enterSql_plus_command_no_semicolon(ctx) {
|
|
10135
|
-
}
|
|
10136
|
-
|
|
10137
|
-
// Exit a parse tree produced by PlSqlParser#sql_plus_command_no_semicolon.
|
|
10138
|
-
exitSql_plus_command_no_semicolon(ctx) {
|
|
10139
|
-
}
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
10133
|
// Enter a parse tree produced by PlSqlParser#sql_plus_command.
|
|
10143
10134
|
enterSql_plus_command(ctx) {
|
|
10144
10135
|
}
|
|
@@ -6756,12 +6756,6 @@ export default class PlSqlParserVisitor extends antlr4.tree.ParseTreeVisitor {
|
|
|
6756
6756
|
}
|
|
6757
6757
|
|
|
6758
6758
|
|
|
6759
|
-
// Visit a parse tree produced by PlSqlParser#sql_plus_command_no_semicolon.
|
|
6760
|
-
visitSql_plus_command_no_semicolon(ctx) {
|
|
6761
|
-
return this.visitChildren(ctx);
|
|
6762
|
-
}
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
6759
|
// Visit a parse tree produced by PlSqlParser#sql_plus_command.
|
|
6766
6760
|
visitSql_plus_command(ctx) {
|
|
6767
6761
|
return this.visitChildren(ctx);
|