@ruleflow-ts/dsl-core 0.1.0
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/LICENSE +21 -0
- package/README.md +290 -0
- package/dist/debug.d.ts +11 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +30 -0
- package/dist/debug.js.map +1 -0
- package/dist/errors/PropertyNotFoundError.d.ts +5 -0
- package/dist/errors/PropertyNotFoundError.d.ts.map +1 -0
- package/dist/errors/PropertyNotFoundError.js +17 -0
- package/dist/errors/PropertyNotFoundError.js.map +1 -0
- package/dist/evaluator/AggregationEvaluator.d.ts +9 -0
- package/dist/evaluator/AggregationEvaluator.d.ts.map +1 -0
- package/dist/evaluator/AggregationEvaluator.js +74 -0
- package/dist/evaluator/AggregationEvaluator.js.map +1 -0
- package/dist/evaluator/BinaryAndEvaluator.d.ts +6 -0
- package/dist/evaluator/BinaryAndEvaluator.d.ts.map +1 -0
- package/dist/evaluator/BinaryAndEvaluator.js +14 -0
- package/dist/evaluator/BinaryAndEvaluator.js.map +1 -0
- package/dist/evaluator/BinaryOrEvaluator.d.ts +6 -0
- package/dist/evaluator/BinaryOrEvaluator.d.ts.map +1 -0
- package/dist/evaluator/BinaryOrEvaluator.js +14 -0
- package/dist/evaluator/BinaryOrEvaluator.js.map +1 -0
- package/dist/evaluator/ComparatorEvaluator.d.ts +9 -0
- package/dist/evaluator/ComparatorEvaluator.d.ts.map +1 -0
- package/dist/evaluator/ComparatorEvaluator.js +95 -0
- package/dist/evaluator/ComparatorEvaluator.js.map +1 -0
- package/dist/evaluator/ListEvaluator.d.ts +10 -0
- package/dist/evaluator/ListEvaluator.d.ts.map +1 -0
- package/dist/evaluator/ListEvaluator.js +71 -0
- package/dist/evaluator/ListEvaluator.js.map +1 -0
- package/dist/evaluator/MathAddEvaluator.d.ts +5 -0
- package/dist/evaluator/MathAddEvaluator.d.ts.map +1 -0
- package/dist/evaluator/MathAddEvaluator.js +20 -0
- package/dist/evaluator/MathAddEvaluator.js.map +1 -0
- package/dist/evaluator/MathMulEvaluator.d.ts +5 -0
- package/dist/evaluator/MathMulEvaluator.d.ts.map +1 -0
- package/dist/evaluator/MathMulEvaluator.js +23 -0
- package/dist/evaluator/MathMulEvaluator.js.map +1 -0
- package/dist/evaluator/ParenthesisEvaluator.d.ts +5 -0
- package/dist/evaluator/ParenthesisEvaluator.d.ts.map +1 -0
- package/dist/evaluator/ParenthesisEvaluator.js +10 -0
- package/dist/evaluator/ParenthesisEvaluator.js.map +1 -0
- package/dist/evaluator/RegexlikeEvaluator.d.ts +6 -0
- package/dist/evaluator/RegexlikeEvaluator.d.ts.map +1 -0
- package/dist/evaluator/RegexlikeEvaluator.js +23 -0
- package/dist/evaluator/RegexlikeEvaluator.js.map +1 -0
- package/dist/evaluator/TupleListEvaluator.d.ts +11 -0
- package/dist/evaluator/TupleListEvaluator.d.ts.map +1 -0
- package/dist/evaluator/TupleListEvaluator.js +121 -0
- package/dist/evaluator/TupleListEvaluator.js.map +1 -0
- package/dist/evaluator/UnaryEvaluator.d.ts +6 -0
- package/dist/evaluator/UnaryEvaluator.d.ts.map +1 -0
- package/dist/evaluator/UnaryEvaluator.js +12 -0
- package/dist/evaluator/UnaryEvaluator.js.map +1 -0
- package/dist/evaluator/ValidPropertyEvaluator.d.ts +6 -0
- package/dist/evaluator/ValidPropertyEvaluator.d.ts.map +1 -0
- package/dist/evaluator/ValidPropertyEvaluator.js +32 -0
- package/dist/evaluator/ValidPropertyEvaluator.js.map +1 -0
- package/dist/evaluator/ValueEvaluator.d.ts +8 -0
- package/dist/evaluator/ValueEvaluator.d.ts.map +1 -0
- package/dist/evaluator/ValueEvaluator.js +43 -0
- package/dist/evaluator/ValueEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateAddEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DateAddEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateAddEvaluator.js +36 -0
- package/dist/evaluator/date/DateAddEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateDiffEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DateDiffEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateDiffEvaluator.js +31 -0
- package/dist/evaluator/date/DateDiffEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateOperationEvaluator.d.ts +6 -0
- package/dist/evaluator/date/DateOperationEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateOperationEvaluator.js +13 -0
- package/dist/evaluator/date/DateOperationEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateParseExprEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DateParseExprEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateParseExprEvaluator.js +44 -0
- package/dist/evaluator/date/DateParseExprEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateSubtractEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DateSubtractEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateSubtractEvaluator.js +36 -0
- package/dist/evaluator/date/DateSubtractEvaluator.js.map +1 -0
- package/dist/evaluator/date/DateValueEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DateValueEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DateValueEvaluator.js +44 -0
- package/dist/evaluator/date/DateValueEvaluator.js.map +1 -0
- package/dist/evaluator/date/DayOfWeekEvaluator.d.ts +7 -0
- package/dist/evaluator/date/DayOfWeekEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/DayOfWeekEvaluator.js +21 -0
- package/dist/evaluator/date/DayOfWeekEvaluator.js.map +1 -0
- package/dist/evaluator/date/NowEvaluator.d.ts +6 -0
- package/dist/evaluator/date/NowEvaluator.d.ts.map +1 -0
- package/dist/evaluator/date/NowEvaluator.js +10 -0
- package/dist/evaluator/date/NowEvaluator.js.map +1 -0
- package/dist/evaluator/geo/DistanceEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/DistanceEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/DistanceEvaluator.js +15 -0
- package/dist/evaluator/geo/DistanceEvaluator.js.map +1 -0
- package/dist/evaluator/geo/DistanceGeohashEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/DistanceGeohashEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/DistanceGeohashEvaluator.js +15 -0
- package/dist/evaluator/geo/DistanceGeohashEvaluator.js.map +1 -0
- package/dist/evaluator/geo/GeoOperationEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/GeoOperationEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/GeoOperationEvaluator.js +11 -0
- package/dist/evaluator/geo/GeoOperationEvaluator.js.map +1 -0
- package/dist/evaluator/geo/GeohashDecodeEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/GeohashDecodeEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/GeohashDecodeEvaluator.js +12 -0
- package/dist/evaluator/geo/GeohashDecodeEvaluator.js.map +1 -0
- package/dist/evaluator/geo/GeohashEncodeEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/GeohashEncodeEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/GeohashEncodeEvaluator.js +15 -0
- package/dist/evaluator/geo/GeohashEncodeEvaluator.js.map +1 -0
- package/dist/evaluator/geo/WithinRadiusEvaluator.d.ts +6 -0
- package/dist/evaluator/geo/WithinRadiusEvaluator.d.ts.map +1 -0
- package/dist/evaluator/geo/WithinRadiusEvaluator.js +17 -0
- package/dist/evaluator/geo/WithinRadiusEvaluator.js.map +1 -0
- package/dist/evaluator/geo/geohash.d.ts +4 -0
- package/dist/evaluator/geo/geohash.d.ts.map +1 -0
- package/dist/evaluator/geo/geohash.js +91 -0
- package/dist/evaluator/geo/geohash.js.map +1 -0
- package/dist/evaluator/string/PartialRatioEvaluator.d.ts +6 -0
- package/dist/evaluator/string/PartialRatioEvaluator.d.ts.map +1 -0
- package/dist/evaluator/string/PartialRatioEvaluator.js +13 -0
- package/dist/evaluator/string/PartialRatioEvaluator.js.map +1 -0
- package/dist/evaluator/string/StringDistanceEvaluator.d.ts +6 -0
- package/dist/evaluator/string/StringDistanceEvaluator.d.ts.map +1 -0
- package/dist/evaluator/string/StringDistanceEvaluator.js +13 -0
- package/dist/evaluator/string/StringDistanceEvaluator.js.map +1 -0
- package/dist/evaluator/string/StringSimilarityScoreEvaluator.d.ts +6 -0
- package/dist/evaluator/string/StringSimilarityScoreEvaluator.d.ts.map +1 -0
- package/dist/evaluator/string/StringSimilarityScoreEvaluator.js +13 -0
- package/dist/evaluator/string/StringSimilarityScoreEvaluator.js.map +1 -0
- package/dist/evaluator/string/TokenSetRatioEvaluator.d.ts +6 -0
- package/dist/evaluator/string/TokenSetRatioEvaluator.d.ts.map +1 -0
- package/dist/evaluator/string/TokenSetRatioEvaluator.js +15 -0
- package/dist/evaluator/string/TokenSetRatioEvaluator.js.map +1 -0
- package/dist/evaluator/string/TokenSortRatioEvaluator.d.ts +6 -0
- package/dist/evaluator/string/TokenSortRatioEvaluator.d.ts.map +1 -0
- package/dist/evaluator/string/TokenSortRatioEvaluator.js +15 -0
- package/dist/evaluator/string/TokenSortRatioEvaluator.js.map +1 -0
- package/dist/evaluator/string/levenshtein.d.ts +7 -0
- package/dist/evaluator/string/levenshtein.d.ts.map +1 -0
- package/dist/evaluator/string/levenshtein.js +81 -0
- package/dist/evaluator/string/levenshtein.js.map +1 -0
- package/dist/generated/RuleFlowLanguageLexer.d.ts +4 -0
- package/dist/generated/RuleFlowLanguageLexer.d.ts.map +1 -0
- package/dist/generated/RuleFlowLanguageLexer.js +9 -0
- package/dist/generated/RuleFlowLanguageLexer.js.map +1 -0
- package/dist/generated/RuleFlowLanguageParser.d.ts +8 -0
- package/dist/generated/RuleFlowLanguageParser.d.ts.map +1 -0
- package/dist/generated/RuleFlowLanguageParser.js +13 -0
- package/dist/generated/RuleFlowLanguageParser.js.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageLexer.d.ts +106 -0
- package/dist/generated/src/grammar/RuleFlowLanguageLexer.d.ts.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageLexer.js +1128 -0
- package/dist/generated/src/grammar/RuleFlowLanguageLexer.js.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageListener.d.ts +752 -0
- package/dist/generated/src/grammar/RuleFlowLanguageListener.d.ts.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageListener.js +4 -0
- package/dist/generated/src/grammar/RuleFlowLanguageListener.js.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageParser.d.ts +936 -0
- package/dist/generated/src/grammar/RuleFlowLanguageParser.d.ts.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageParser.js +6080 -0
- package/dist/generated/src/grammar/RuleFlowLanguageParser.js.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageVisitor.d.ts +476 -0
- package/dist/generated/src/grammar/RuleFlowLanguageVisitor.d.ts.map +1 -0
- package/dist/generated/src/grammar/RuleFlowLanguageVisitor.js +4 -0
- package/dist/generated/src/grammar/RuleFlowLanguageVisitor.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/listeners/ErrorListener.d.ts +5 -0
- package/dist/listeners/ErrorListener.d.ts.map +1 -0
- package/dist/listeners/ErrorListener.js +10 -0
- package/dist/listeners/ErrorListener.js.map +1 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/visitors/ActionsVisitor.d.ts +12 -0
- package/dist/visitors/ActionsVisitor.d.ts.map +1 -0
- package/dist/visitors/ActionsVisitor.js +82 -0
- package/dist/visitors/ActionsVisitor.js.map +1 -0
- package/dist/visitors/RulesetVisitor.d.ts +18 -0
- package/dist/visitors/RulesetVisitor.d.ts.map +1 -0
- package/dist/visitors/RulesetVisitor.js +190 -0
- package/dist/visitors/RulesetVisitor.js.map +1 -0
- package/dist/visitors/Visitor.d.ts +13 -0
- package/dist/visitors/Visitor.d.ts.map +1 -0
- package/dist/visitors/Visitor.js +169 -0
- package/dist/visitors/Visitor.js.map +1 -0
- package/dist/workflow.d.ts +9 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +56 -0
- package/dist/workflow.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
|
|
2
|
+
import { DateDiffContext } from "./RuleFlowLanguageParser";
|
|
3
|
+
import { DayOfWeekContext } from "./RuleFlowLanguageParser";
|
|
4
|
+
import { NowContext } from "./RuleFlowLanguageParser";
|
|
5
|
+
import { DateAddContext } from "./RuleFlowLanguageParser";
|
|
6
|
+
import { DateSubtractContext } from "./RuleFlowLanguageParser";
|
|
7
|
+
import { ParenthesisContext } from "./RuleFlowLanguageParser";
|
|
8
|
+
import { MathMulContext } from "./RuleFlowLanguageParser";
|
|
9
|
+
import { MathAddContext } from "./RuleFlowLanguageParser";
|
|
10
|
+
import { ComparatorContext } from "./RuleFlowLanguageParser";
|
|
11
|
+
import { ListContext } from "./RuleFlowLanguageParser";
|
|
12
|
+
import { TupleListContext } from "./RuleFlowLanguageParser";
|
|
13
|
+
import { AggregationContext } from "./RuleFlowLanguageParser";
|
|
14
|
+
import { DateOperationContext } from "./RuleFlowLanguageParser";
|
|
15
|
+
import { RegexlikeContext } from "./RuleFlowLanguageParser";
|
|
16
|
+
import { UnaryContext } from "./RuleFlowLanguageParser";
|
|
17
|
+
import { BinaryAndContext } from "./RuleFlowLanguageParser";
|
|
18
|
+
import { BinaryOrContext } from "./RuleFlowLanguageParser";
|
|
19
|
+
import { DateParseExprContext } from "./RuleFlowLanguageParser";
|
|
20
|
+
import { ValueContext } from "./RuleFlowLanguageParser";
|
|
21
|
+
import { PropertyContext } from "./RuleFlowLanguageParser";
|
|
22
|
+
import { StringDistanceContext } from "./RuleFlowLanguageParser";
|
|
23
|
+
import { PartialRatioContext } from "./RuleFlowLanguageParser";
|
|
24
|
+
import { TokenSortRatioContext } from "./RuleFlowLanguageParser";
|
|
25
|
+
import { TokenSetRatioContext } from "./RuleFlowLanguageParser";
|
|
26
|
+
import { StringSimilarityScoreContext } from "./RuleFlowLanguageParser";
|
|
27
|
+
import { GeoOperationContext } from "./RuleFlowLanguageParser";
|
|
28
|
+
import { GeohashEncodeContext } from "./RuleFlowLanguageParser";
|
|
29
|
+
import { GeohashDecodeContext } from "./RuleFlowLanguageParser";
|
|
30
|
+
import { DistanceContext } from "./RuleFlowLanguageParser";
|
|
31
|
+
import { DistanceGeohashContext } from "./RuleFlowLanguageParser";
|
|
32
|
+
import { WithinRadiusContext } from "./RuleFlowLanguageParser";
|
|
33
|
+
import { ParseContext } from "./RuleFlowLanguageParser";
|
|
34
|
+
import { ErrorContext } from "./RuleFlowLanguageParser";
|
|
35
|
+
import { WorkflowContext } from "./RuleFlowLanguageParser";
|
|
36
|
+
import { Workflow_nameContext } from "./RuleFlowLanguageParser";
|
|
37
|
+
import { String_literalContext } from "./RuleFlowLanguageParser";
|
|
38
|
+
import { RulesetsContext } from "./RuleFlowLanguageParser";
|
|
39
|
+
import { Ruleset_conditionContext } from "./RuleFlowLanguageParser";
|
|
40
|
+
import { RulesContext } from "./RuleFlowLanguageParser";
|
|
41
|
+
import { Rule_bodyContext } from "./RuleFlowLanguageParser";
|
|
42
|
+
import { NameContext } from "./RuleFlowLanguageParser";
|
|
43
|
+
import { Default_clauseContext } from "./RuleFlowLanguageParser";
|
|
44
|
+
import { ConfigurationContext } from "./RuleFlowLanguageParser";
|
|
45
|
+
import { Evaluation_modeContext } from "./RuleFlowLanguageParser";
|
|
46
|
+
import { Return_resultContext } from "./RuleFlowLanguageParser";
|
|
47
|
+
import { State_ruleContext } from "./RuleFlowLanguageParser";
|
|
48
|
+
import { ActionsContext } from "./RuleFlowLanguageParser";
|
|
49
|
+
import { ActionContext } from "./RuleFlowLanguageParser";
|
|
50
|
+
import { Action_paramsContext } from "./RuleFlowLanguageParser";
|
|
51
|
+
import { Param_pairsContext } from "./RuleFlowLanguageParser";
|
|
52
|
+
import { Param_pairContext } from "./RuleFlowLanguageParser";
|
|
53
|
+
import { ExprContext } from "./RuleFlowLanguageParser";
|
|
54
|
+
import { GeoExprContext } from "./RuleFlowLanguageParser";
|
|
55
|
+
import { DateExprContext } from "./RuleFlowLanguageParser";
|
|
56
|
+
import { PropertyTupleContext } from "./RuleFlowLanguageParser";
|
|
57
|
+
import { ListElemsContext } from "./RuleFlowLanguageParser";
|
|
58
|
+
import { ValidValueContext } from "./RuleFlowLanguageParser";
|
|
59
|
+
import { ActionParamValueContext } from "./RuleFlowLanguageParser";
|
|
60
|
+
import { DateParseContext } from "./RuleFlowLanguageParser";
|
|
61
|
+
import { DateValueContext } from "./RuleFlowLanguageParser";
|
|
62
|
+
import { TimeUnitContext } from "./RuleFlowLanguageParser";
|
|
63
|
+
import { ValidPropertyContext } from "./RuleFlowLanguageParser";
|
|
64
|
+
/**
|
|
65
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
66
|
+
* by `RuleFlowLanguageParser`.
|
|
67
|
+
*
|
|
68
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
69
|
+
* operations with no return type.
|
|
70
|
+
*/
|
|
71
|
+
export interface RuleFlowLanguageVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
72
|
+
/**
|
|
73
|
+
* Visit a parse tree produced by the `dateDiff`
|
|
74
|
+
* labeled alternative in `RuleFlowLanguageParser.dateExpr`.
|
|
75
|
+
* @param ctx the parse tree
|
|
76
|
+
* @return the visitor result
|
|
77
|
+
*/
|
|
78
|
+
visitDateDiff?: (ctx: DateDiffContext) => Result;
|
|
79
|
+
/**
|
|
80
|
+
* Visit a parse tree produced by the `dayOfWeek`
|
|
81
|
+
* labeled alternative in `RuleFlowLanguageParser.dateExpr`.
|
|
82
|
+
* @param ctx the parse tree
|
|
83
|
+
* @return the visitor result
|
|
84
|
+
*/
|
|
85
|
+
visitDayOfWeek?: (ctx: DayOfWeekContext) => Result;
|
|
86
|
+
/**
|
|
87
|
+
* Visit a parse tree produced by the `now`
|
|
88
|
+
* labeled alternative in `RuleFlowLanguageParser.dateExpr`.
|
|
89
|
+
* @param ctx the parse tree
|
|
90
|
+
* @return the visitor result
|
|
91
|
+
*/
|
|
92
|
+
visitNow?: (ctx: NowContext) => Result;
|
|
93
|
+
/**
|
|
94
|
+
* Visit a parse tree produced by the `dateAdd`
|
|
95
|
+
* labeled alternative in `RuleFlowLanguageParser.dateExpr`.
|
|
96
|
+
* @param ctx the parse tree
|
|
97
|
+
* @return the visitor result
|
|
98
|
+
*/
|
|
99
|
+
visitDateAdd?: (ctx: DateAddContext) => Result;
|
|
100
|
+
/**
|
|
101
|
+
* Visit a parse tree produced by the `dateSubtract`
|
|
102
|
+
* labeled alternative in `RuleFlowLanguageParser.dateExpr`.
|
|
103
|
+
* @param ctx the parse tree
|
|
104
|
+
* @return the visitor result
|
|
105
|
+
*/
|
|
106
|
+
visitDateSubtract?: (ctx: DateSubtractContext) => Result;
|
|
107
|
+
/**
|
|
108
|
+
* Visit a parse tree produced by the `parenthesis`
|
|
109
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
110
|
+
* @param ctx the parse tree
|
|
111
|
+
* @return the visitor result
|
|
112
|
+
*/
|
|
113
|
+
visitParenthesis?: (ctx: ParenthesisContext) => Result;
|
|
114
|
+
/**
|
|
115
|
+
* Visit a parse tree produced by the `mathMul`
|
|
116
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
117
|
+
* @param ctx the parse tree
|
|
118
|
+
* @return the visitor result
|
|
119
|
+
*/
|
|
120
|
+
visitMathMul?: (ctx: MathMulContext) => Result;
|
|
121
|
+
/**
|
|
122
|
+
* Visit a parse tree produced by the `mathAdd`
|
|
123
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
124
|
+
* @param ctx the parse tree
|
|
125
|
+
* @return the visitor result
|
|
126
|
+
*/
|
|
127
|
+
visitMathAdd?: (ctx: MathAddContext) => Result;
|
|
128
|
+
/**
|
|
129
|
+
* Visit a parse tree produced by the `comparator`
|
|
130
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
131
|
+
* @param ctx the parse tree
|
|
132
|
+
* @return the visitor result
|
|
133
|
+
*/
|
|
134
|
+
visitComparator?: (ctx: ComparatorContext) => Result;
|
|
135
|
+
/**
|
|
136
|
+
* Visit a parse tree produced by the `list`
|
|
137
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
138
|
+
* @param ctx the parse tree
|
|
139
|
+
* @return the visitor result
|
|
140
|
+
*/
|
|
141
|
+
visitList?: (ctx: ListContext) => Result;
|
|
142
|
+
/**
|
|
143
|
+
* Visit a parse tree produced by the `tupleList`
|
|
144
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
145
|
+
* @param ctx the parse tree
|
|
146
|
+
* @return the visitor result
|
|
147
|
+
*/
|
|
148
|
+
visitTupleList?: (ctx: TupleListContext) => Result;
|
|
149
|
+
/**
|
|
150
|
+
* Visit a parse tree produced by the `aggregation`
|
|
151
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
152
|
+
* @param ctx the parse tree
|
|
153
|
+
* @return the visitor result
|
|
154
|
+
*/
|
|
155
|
+
visitAggregation?: (ctx: AggregationContext) => Result;
|
|
156
|
+
/**
|
|
157
|
+
* Visit a parse tree produced by the `dateOperation`
|
|
158
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
159
|
+
* @param ctx the parse tree
|
|
160
|
+
* @return the visitor result
|
|
161
|
+
*/
|
|
162
|
+
visitDateOperation?: (ctx: DateOperationContext) => Result;
|
|
163
|
+
/**
|
|
164
|
+
* Visit a parse tree produced by the `regexlike`
|
|
165
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
166
|
+
* @param ctx the parse tree
|
|
167
|
+
* @return the visitor result
|
|
168
|
+
*/
|
|
169
|
+
visitRegexlike?: (ctx: RegexlikeContext) => Result;
|
|
170
|
+
/**
|
|
171
|
+
* Visit a parse tree produced by the `unary`
|
|
172
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
173
|
+
* @param ctx the parse tree
|
|
174
|
+
* @return the visitor result
|
|
175
|
+
*/
|
|
176
|
+
visitUnary?: (ctx: UnaryContext) => Result;
|
|
177
|
+
/**
|
|
178
|
+
* Visit a parse tree produced by the `binaryAnd`
|
|
179
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
180
|
+
* @param ctx the parse tree
|
|
181
|
+
* @return the visitor result
|
|
182
|
+
*/
|
|
183
|
+
visitBinaryAnd?: (ctx: BinaryAndContext) => Result;
|
|
184
|
+
/**
|
|
185
|
+
* Visit a parse tree produced by the `binaryOr`
|
|
186
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
187
|
+
* @param ctx the parse tree
|
|
188
|
+
* @return the visitor result
|
|
189
|
+
*/
|
|
190
|
+
visitBinaryOr?: (ctx: BinaryOrContext) => Result;
|
|
191
|
+
/**
|
|
192
|
+
* Visit a parse tree produced by the `dateParseExpr`
|
|
193
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
194
|
+
* @param ctx the parse tree
|
|
195
|
+
* @return the visitor result
|
|
196
|
+
*/
|
|
197
|
+
visitDateParseExpr?: (ctx: DateParseExprContext) => Result;
|
|
198
|
+
/**
|
|
199
|
+
* Visit a parse tree produced by the `value`
|
|
200
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
201
|
+
* @param ctx the parse tree
|
|
202
|
+
* @return the visitor result
|
|
203
|
+
*/
|
|
204
|
+
visitValue?: (ctx: ValueContext) => Result;
|
|
205
|
+
/**
|
|
206
|
+
* Visit a parse tree produced by the `property`
|
|
207
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
208
|
+
* @param ctx the parse tree
|
|
209
|
+
* @return the visitor result
|
|
210
|
+
*/
|
|
211
|
+
visitProperty?: (ctx: PropertyContext) => Result;
|
|
212
|
+
/**
|
|
213
|
+
* Visit a parse tree produced by the `stringDistance`
|
|
214
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
215
|
+
* @param ctx the parse tree
|
|
216
|
+
* @return the visitor result
|
|
217
|
+
*/
|
|
218
|
+
visitStringDistance?: (ctx: StringDistanceContext) => Result;
|
|
219
|
+
/**
|
|
220
|
+
* Visit a parse tree produced by the `partialRatio`
|
|
221
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
222
|
+
* @param ctx the parse tree
|
|
223
|
+
* @return the visitor result
|
|
224
|
+
*/
|
|
225
|
+
visitPartialRatio?: (ctx: PartialRatioContext) => Result;
|
|
226
|
+
/**
|
|
227
|
+
* Visit a parse tree produced by the `tokenSortRatio`
|
|
228
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
229
|
+
* @param ctx the parse tree
|
|
230
|
+
* @return the visitor result
|
|
231
|
+
*/
|
|
232
|
+
visitTokenSortRatio?: (ctx: TokenSortRatioContext) => Result;
|
|
233
|
+
/**
|
|
234
|
+
* Visit a parse tree produced by the `tokenSetRatio`
|
|
235
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
236
|
+
* @param ctx the parse tree
|
|
237
|
+
* @return the visitor result
|
|
238
|
+
*/
|
|
239
|
+
visitTokenSetRatio?: (ctx: TokenSetRatioContext) => Result;
|
|
240
|
+
/**
|
|
241
|
+
* Visit a parse tree produced by the `stringSimilarityScore`
|
|
242
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
243
|
+
* @param ctx the parse tree
|
|
244
|
+
* @return the visitor result
|
|
245
|
+
*/
|
|
246
|
+
visitStringSimilarityScore?: (ctx: StringSimilarityScoreContext) => Result;
|
|
247
|
+
/**
|
|
248
|
+
* Visit a parse tree produced by the `geoOperation`
|
|
249
|
+
* labeled alternative in `RuleFlowLanguageParser.expr`.
|
|
250
|
+
* @param ctx the parse tree
|
|
251
|
+
* @return the visitor result
|
|
252
|
+
*/
|
|
253
|
+
visitGeoOperation?: (ctx: GeoOperationContext) => Result;
|
|
254
|
+
/**
|
|
255
|
+
* Visit a parse tree produced by the `geohashEncode`
|
|
256
|
+
* labeled alternative in `RuleFlowLanguageParser.geoExpr`.
|
|
257
|
+
* @param ctx the parse tree
|
|
258
|
+
* @return the visitor result
|
|
259
|
+
*/
|
|
260
|
+
visitGeohashEncode?: (ctx: GeohashEncodeContext) => Result;
|
|
261
|
+
/**
|
|
262
|
+
* Visit a parse tree produced by the `geohashDecode`
|
|
263
|
+
* labeled alternative in `RuleFlowLanguageParser.geoExpr`.
|
|
264
|
+
* @param ctx the parse tree
|
|
265
|
+
* @return the visitor result
|
|
266
|
+
*/
|
|
267
|
+
visitGeohashDecode?: (ctx: GeohashDecodeContext) => Result;
|
|
268
|
+
/**
|
|
269
|
+
* Visit a parse tree produced by the `distance`
|
|
270
|
+
* labeled alternative in `RuleFlowLanguageParser.geoExpr`.
|
|
271
|
+
* @param ctx the parse tree
|
|
272
|
+
* @return the visitor result
|
|
273
|
+
*/
|
|
274
|
+
visitDistance?: (ctx: DistanceContext) => Result;
|
|
275
|
+
/**
|
|
276
|
+
* Visit a parse tree produced by the `distanceGeohash`
|
|
277
|
+
* labeled alternative in `RuleFlowLanguageParser.geoExpr`.
|
|
278
|
+
* @param ctx the parse tree
|
|
279
|
+
* @return the visitor result
|
|
280
|
+
*/
|
|
281
|
+
visitDistanceGeohash?: (ctx: DistanceGeohashContext) => Result;
|
|
282
|
+
/**
|
|
283
|
+
* Visit a parse tree produced by the `withinRadius`
|
|
284
|
+
* labeled alternative in `RuleFlowLanguageParser.geoExpr`.
|
|
285
|
+
* @param ctx the parse tree
|
|
286
|
+
* @return the visitor result
|
|
287
|
+
*/
|
|
288
|
+
visitWithinRadius?: (ctx: WithinRadiusContext) => Result;
|
|
289
|
+
/**
|
|
290
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.parse`.
|
|
291
|
+
* @param ctx the parse tree
|
|
292
|
+
* @return the visitor result
|
|
293
|
+
*/
|
|
294
|
+
visitParse?: (ctx: ParseContext) => Result;
|
|
295
|
+
/**
|
|
296
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.error`.
|
|
297
|
+
* @param ctx the parse tree
|
|
298
|
+
* @return the visitor result
|
|
299
|
+
*/
|
|
300
|
+
visitError?: (ctx: ErrorContext) => Result;
|
|
301
|
+
/**
|
|
302
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.workflow`.
|
|
303
|
+
* @param ctx the parse tree
|
|
304
|
+
* @return the visitor result
|
|
305
|
+
*/
|
|
306
|
+
visitWorkflow?: (ctx: WorkflowContext) => Result;
|
|
307
|
+
/**
|
|
308
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.workflow_name`.
|
|
309
|
+
* @param ctx the parse tree
|
|
310
|
+
* @return the visitor result
|
|
311
|
+
*/
|
|
312
|
+
visitWorkflow_name?: (ctx: Workflow_nameContext) => Result;
|
|
313
|
+
/**
|
|
314
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.string_literal`.
|
|
315
|
+
* @param ctx the parse tree
|
|
316
|
+
* @return the visitor result
|
|
317
|
+
*/
|
|
318
|
+
visitString_literal?: (ctx: String_literalContext) => Result;
|
|
319
|
+
/**
|
|
320
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.rulesets`.
|
|
321
|
+
* @param ctx the parse tree
|
|
322
|
+
* @return the visitor result
|
|
323
|
+
*/
|
|
324
|
+
visitRulesets?: (ctx: RulesetsContext) => Result;
|
|
325
|
+
/**
|
|
326
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.ruleset_condition`.
|
|
327
|
+
* @param ctx the parse tree
|
|
328
|
+
* @return the visitor result
|
|
329
|
+
*/
|
|
330
|
+
visitRuleset_condition?: (ctx: Ruleset_conditionContext) => Result;
|
|
331
|
+
/**
|
|
332
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.rules`.
|
|
333
|
+
* @param ctx the parse tree
|
|
334
|
+
* @return the visitor result
|
|
335
|
+
*/
|
|
336
|
+
visitRules?: (ctx: RulesContext) => Result;
|
|
337
|
+
/**
|
|
338
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.rule_body`.
|
|
339
|
+
* @param ctx the parse tree
|
|
340
|
+
* @return the visitor result
|
|
341
|
+
*/
|
|
342
|
+
visitRule_body?: (ctx: Rule_bodyContext) => Result;
|
|
343
|
+
/**
|
|
344
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.name`.
|
|
345
|
+
* @param ctx the parse tree
|
|
346
|
+
* @return the visitor result
|
|
347
|
+
*/
|
|
348
|
+
visitName?: (ctx: NameContext) => Result;
|
|
349
|
+
/**
|
|
350
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.default_clause`.
|
|
351
|
+
* @param ctx the parse tree
|
|
352
|
+
* @return the visitor result
|
|
353
|
+
*/
|
|
354
|
+
visitDefault_clause?: (ctx: Default_clauseContext) => Result;
|
|
355
|
+
/**
|
|
356
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.configuration`.
|
|
357
|
+
* @param ctx the parse tree
|
|
358
|
+
* @return the visitor result
|
|
359
|
+
*/
|
|
360
|
+
visitConfiguration?: (ctx: ConfigurationContext) => Result;
|
|
361
|
+
/**
|
|
362
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.evaluation_mode`.
|
|
363
|
+
* @param ctx the parse tree
|
|
364
|
+
* @return the visitor result
|
|
365
|
+
*/
|
|
366
|
+
visitEvaluation_mode?: (ctx: Evaluation_modeContext) => Result;
|
|
367
|
+
/**
|
|
368
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.return_result`.
|
|
369
|
+
* @param ctx the parse tree
|
|
370
|
+
* @return the visitor result
|
|
371
|
+
*/
|
|
372
|
+
visitReturn_result?: (ctx: Return_resultContext) => Result;
|
|
373
|
+
/**
|
|
374
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.state_rule`.
|
|
375
|
+
* @param ctx the parse tree
|
|
376
|
+
* @return the visitor result
|
|
377
|
+
*/
|
|
378
|
+
visitState_rule?: (ctx: State_ruleContext) => Result;
|
|
379
|
+
/**
|
|
380
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.actions`.
|
|
381
|
+
* @param ctx the parse tree
|
|
382
|
+
* @return the visitor result
|
|
383
|
+
*/
|
|
384
|
+
visitActions?: (ctx: ActionsContext) => Result;
|
|
385
|
+
/**
|
|
386
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.action`.
|
|
387
|
+
* @param ctx the parse tree
|
|
388
|
+
* @return the visitor result
|
|
389
|
+
*/
|
|
390
|
+
visitAction?: (ctx: ActionContext) => Result;
|
|
391
|
+
/**
|
|
392
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.action_params`.
|
|
393
|
+
* @param ctx the parse tree
|
|
394
|
+
* @return the visitor result
|
|
395
|
+
*/
|
|
396
|
+
visitAction_params?: (ctx: Action_paramsContext) => Result;
|
|
397
|
+
/**
|
|
398
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.param_pairs`.
|
|
399
|
+
* @param ctx the parse tree
|
|
400
|
+
* @return the visitor result
|
|
401
|
+
*/
|
|
402
|
+
visitParam_pairs?: (ctx: Param_pairsContext) => Result;
|
|
403
|
+
/**
|
|
404
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.param_pair`.
|
|
405
|
+
* @param ctx the parse tree
|
|
406
|
+
* @return the visitor result
|
|
407
|
+
*/
|
|
408
|
+
visitParam_pair?: (ctx: Param_pairContext) => Result;
|
|
409
|
+
/**
|
|
410
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.expr`.
|
|
411
|
+
* @param ctx the parse tree
|
|
412
|
+
* @return the visitor result
|
|
413
|
+
*/
|
|
414
|
+
visitExpr?: (ctx: ExprContext) => Result;
|
|
415
|
+
/**
|
|
416
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.geoExpr`.
|
|
417
|
+
* @param ctx the parse tree
|
|
418
|
+
* @return the visitor result
|
|
419
|
+
*/
|
|
420
|
+
visitGeoExpr?: (ctx: GeoExprContext) => Result;
|
|
421
|
+
/**
|
|
422
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.dateExpr`.
|
|
423
|
+
* @param ctx the parse tree
|
|
424
|
+
* @return the visitor result
|
|
425
|
+
*/
|
|
426
|
+
visitDateExpr?: (ctx: DateExprContext) => Result;
|
|
427
|
+
/**
|
|
428
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.propertyTuple`.
|
|
429
|
+
* @param ctx the parse tree
|
|
430
|
+
* @return the visitor result
|
|
431
|
+
*/
|
|
432
|
+
visitPropertyTuple?: (ctx: PropertyTupleContext) => Result;
|
|
433
|
+
/**
|
|
434
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.listElems`.
|
|
435
|
+
* @param ctx the parse tree
|
|
436
|
+
* @return the visitor result
|
|
437
|
+
*/
|
|
438
|
+
visitListElems?: (ctx: ListElemsContext) => Result;
|
|
439
|
+
/**
|
|
440
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.validValue`.
|
|
441
|
+
* @param ctx the parse tree
|
|
442
|
+
* @return the visitor result
|
|
443
|
+
*/
|
|
444
|
+
visitValidValue?: (ctx: ValidValueContext) => Result;
|
|
445
|
+
/**
|
|
446
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.actionParamValue`.
|
|
447
|
+
* @param ctx the parse tree
|
|
448
|
+
* @return the visitor result
|
|
449
|
+
*/
|
|
450
|
+
visitActionParamValue?: (ctx: ActionParamValueContext) => Result;
|
|
451
|
+
/**
|
|
452
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.dateParse`.
|
|
453
|
+
* @param ctx the parse tree
|
|
454
|
+
* @return the visitor result
|
|
455
|
+
*/
|
|
456
|
+
visitDateParse?: (ctx: DateParseContext) => Result;
|
|
457
|
+
/**
|
|
458
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.dateValue`.
|
|
459
|
+
* @param ctx the parse tree
|
|
460
|
+
* @return the visitor result
|
|
461
|
+
*/
|
|
462
|
+
visitDateValue?: (ctx: DateValueContext) => Result;
|
|
463
|
+
/**
|
|
464
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.timeUnit`.
|
|
465
|
+
* @param ctx the parse tree
|
|
466
|
+
* @return the visitor result
|
|
467
|
+
*/
|
|
468
|
+
visitTimeUnit?: (ctx: TimeUnitContext) => Result;
|
|
469
|
+
/**
|
|
470
|
+
* Visit a parse tree produced by `RuleFlowLanguageParser.validProperty`.
|
|
471
|
+
* @param ctx the parse tree
|
|
472
|
+
* @return the visitor result
|
|
473
|
+
*/
|
|
474
|
+
visitValidProperty?: (ctx: ValidPropertyContext) => Result;
|
|
475
|
+
}
|
|
476
|
+
//# sourceMappingURL=RuleFlowLanguageVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleFlowLanguageVisitor.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/grammar/RuleFlowLanguageVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC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C;IAE/C;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,MAAM,CAAC;IAEjD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC;IAE3D;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAEnD;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,MAAM,CAAC;IAErD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,uBAAuB,KAAK,MAAM,CAAC;IAEjE;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAEnD;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAEnD;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,MAAM,CAAC;IAEjD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,MAAM,CAAC;CAC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleFlowLanguageVisitor.js","sourceRoot":"","sources":["../../../../src/generated/src/grammar/RuleFlowLanguageVisitor.ts"],"names":[],"mappings":";AAAA,yEAAyE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.debugParse = exports.debugLex = exports.Workflow = void 0;
|
|
4
|
+
var workflow_1 = require("./workflow");
|
|
5
|
+
Object.defineProperty(exports, "Workflow", { enumerable: true, get: function () { return workflow_1.Workflow; } });
|
|
6
|
+
var debug_1 = require("./debug");
|
|
7
|
+
Object.defineProperty(exports, "debugLex", { enumerable: true, get: function () { return debug_1.lex; } });
|
|
8
|
+
Object.defineProperty(exports, "debugParse", { enumerable: true, get: function () { return debug_1.parse; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAEjB,iCAA+D;AAAtD,iGAAA,GAAG,OAAY;AAAE,mGAAA,KAAK,OAAc"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ANTLRErrorListener, RecognitionException, Recognizer } from 'antlr4ts';
|
|
2
|
+
export declare class ErrorListener implements ANTLRErrorListener<any> {
|
|
3
|
+
syntaxError<T>(recognizer: Recognizer<T, any>, offendingSymbol: T, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ErrorListener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorListener.d.ts","sourceRoot":"","sources":["../../src/listeners/ErrorListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEhF,qBAAa,aAAc,YAAW,kBAAkB,CAAC,GAAG,CAAC;IAC3D,WAAW,CAAC,CAAC,EACX,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAC9B,eAAe,EAAE,CAAC,EAClB,IAAI,EAAE,MAAM,EACZ,kBAAkB,EAAE,MAAM,EAC1B,GAAG,EAAE,MAAM,EACX,CAAC,EAAE,oBAAoB,GAAG,SAAS,GAClC,IAAI;CAGR"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorListener = void 0;
|
|
4
|
+
class ErrorListener {
|
|
5
|
+
syntaxError(recognizer, offendingSymbol, line, charPositionInLine, msg, e) {
|
|
6
|
+
throw new Error(`Error at line ${line}:${charPositionInLine} - ${msg}`);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.ErrorListener = ErrorListener;
|
|
10
|
+
//# sourceMappingURL=ErrorListener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorListener.js","sourceRoot":"","sources":["../../src/listeners/ErrorListener.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;IACxB,WAAW,CACT,UAA8B,EAC9B,eAAkB,EAClB,IAAY,EACZ,kBAA0B,EAC1B,GAAW,EACX,CAAmC;QAEnC,MAAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,IAAI,kBAAkB,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAXD,sCAWC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type InputMap = Record<string, unknown>;
|
|
2
|
+
export type ListsMap = Record<string, unknown[]>;
|
|
3
|
+
export interface Action {
|
|
4
|
+
name: string;
|
|
5
|
+
params: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export interface MatchedRule {
|
|
8
|
+
ruleSet: string;
|
|
9
|
+
rule: string;
|
|
10
|
+
result: string;
|
|
11
|
+
actions: Action[];
|
|
12
|
+
}
|
|
13
|
+
export interface WorkflowResult {
|
|
14
|
+
workflow: string;
|
|
15
|
+
ruleSet?: string;
|
|
16
|
+
rule?: string;
|
|
17
|
+
result: string;
|
|
18
|
+
actions?: Action[];
|
|
19
|
+
warnings?: string[];
|
|
20
|
+
error?: boolean;
|
|
21
|
+
matchedRules?: MatchedRule[];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;AAEjD,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ActionsContext } from '../generated/src/grammar/RuleFlowLanguageParser';
|
|
2
|
+
import type { Visitor } from './Visitor';
|
|
3
|
+
import type { Action } from '../types';
|
|
4
|
+
export declare class ActionsVisitorTs {
|
|
5
|
+
private readonly evalVisitor;
|
|
6
|
+
constructor(evalVisitor: Visitor);
|
|
7
|
+
visit(ctx: ActionsContext | undefined): Action[];
|
|
8
|
+
private resolveActionName;
|
|
9
|
+
private resolveParams;
|
|
10
|
+
private evalActionParamValue;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ActionsVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsVisitor.d.ts","sourceRoot":"","sources":["../../src/visitors/ActionsVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA0C,MAAM,iDAAiD,CAAC;AAC9H,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUvC,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,OAAO;IAEjD,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,EAAE;IAYhD,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,oBAAoB;CAmB7B"}
|