3xpr 1.10.5 → 1.11.1
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/__tests__/auto/comparison.test.js +2 -1
- package/__tests__/auto/comparison.test.js.map +1 -1
- package/__tests__/auto/parameters.test.js +1 -0
- package/__tests__/auto/parameters.test.js.map +1 -1
- package/__tests__/auto/string.test.js +5 -0
- package/__tests__/auto/string.test.js.map +1 -1
- package/__tests__/auto/type.test.js +1 -0
- package/__tests__/auto/type.test.js.map +1 -1
- package/{infrastructure/expression → expression/application}/expressions.d.ts +14 -20
- package/{infrastructure/expression → expression/application}/expressions.js +47 -43
- package/expression/application/expressions.js.map +1 -0
- package/expression/application/index.d.ts +6 -0
- package/expression/application/index.js +23 -0
- package/expression/application/index.js.map +1 -0
- package/expression/application/ports/converter.d.ts +3 -0
- package/expression/application/ports/converter.js +3 -0
- package/expression/application/ports/converter.js.map +1 -0
- package/expression/application/services/builder.d.ts +13 -0
- package/expression/application/services/builder.js +29 -0
- package/expression/application/services/builder.js.map +1 -0
- package/{application/expression/useCases/normalize.d.ts → expression/application/services/normalizer.d.ts} +1 -1
- package/{application/expression/useCases/normalize.js → expression/application/services/normalizer.js} +4 -4
- package/expression/application/services/normalizer.js.map +1 -0
- package/{application/expression → expression/application}/services/parser.d.ts +6 -1
- package/{application/expression → expression/application}/services/parser.js +21 -2
- package/expression/application/services/parser.js.map +1 -0
- package/expression/application/useCases/build.d.ts +8 -0
- package/expression/application/useCases/build.js +50 -0
- package/expression/application/useCases/build.js.map +1 -0
- package/expression/application/useCases/convert.d.ts +5 -0
- package/expression/application/useCases/convert.js +31 -0
- package/expression/application/useCases/convert.js.map +1 -0
- package/{application/ports → expression/domain}/expressions.d.ts +5 -6
- package/expression/domain/expressions.js.map +1 -0
- package/expression/domain/index.d.ts +1 -0
- package/{application/helper → expression/domain}/index.js +1 -2
- package/expression/domain/index.js.map +1 -0
- package/expression/infrastructure/convertFromFunction.d.ts +10 -0
- package/expression/infrastructure/convertFromFunction.js +58 -0
- package/expression/infrastructure/convertFromFunction.js.map +1 -0
- package/expression/infrastructure/convertFromGraphql.d.ts +4 -0
- package/{infrastructure/expression → expression/infrastructure}/convertFromGraphql.js +14 -4
- package/expression/infrastructure/convertFromGraphql.js.map +1 -0
- package/expression/infrastructure/helper.d.ts +5 -0
- package/expression/infrastructure/helper.js +47 -0
- package/expression/infrastructure/helper.js.map +1 -0
- package/expression/infrastructure/index.d.ts +1 -0
- package/{application → expression/infrastructure}/index.js +4 -4
- package/expression/infrastructure/index.js.map +1 -0
- package/{application/model → expression/infrastructure}/library.d.ts +2 -4
- package/{application/model → expression/infrastructure}/library.js +111 -94
- package/expression/infrastructure/library.js.map +1 -0
- package/index.d.ts +31 -3
- package/index.js +51 -3
- package/index.js.map +1 -1
- package/{application/model → model/application}/index.d.ts +0 -1
- package/{application/model → model/application}/index.js +0 -1
- package/model/application/index.js.map +1 -0
- package/{application/model → model/application}/modelService.d.ts +3 -1
- package/{application/model → model/application}/modelService.js +1 -2
- package/model/application/modelService.js.map +1 -0
- package/model/domain/index.d.ts +1 -0
- package/{application/operand/useCases/build/factory → model/domain}/index.js +1 -2
- package/model/domain/index.js.map +1 -0
- package/{domain/model → model/domain}/services.d.ts +2 -2
- package/model/domain/services.js.map +1 -0
- package/operand/application/index.d.ts +8 -0
- package/{application/operand → operand/application}/index.js +6 -8
- package/operand/application/index.js.map +1 -0
- package/operand/application/services/constBuilder.d.ts +4 -0
- package/operand/application/services/constBuilder.js +3 -0
- package/operand/application/services/constBuilder.js.map +1 -0
- package/operand/application/services/factory.d.ts +8 -0
- package/operand/application/services/factory.js +25 -0
- package/operand/application/services/factory.js.map +1 -0
- package/operand/application/services/parameterService.d.ts +4 -0
- package/{application/operand → operand/application}/services/parameterService.js +1 -1
- package/{application/operand → operand/application}/services/parameterService.js.map +1 -1
- package/{application/operand/useCases → operand/application/services}/serializer.d.ts +1 -1
- package/{application/operand/useCases → operand/application/services}/serializer.js +1 -1
- package/{application/operand/useCases → operand/application/services}/serializer.js.map +1 -1
- package/{application/operand → operand/application}/services/typeService.d.ts +7 -4
- package/{application/operand → operand/application}/services/typeService.js +74 -11
- package/operand/application/services/typeService.js.map +1 -0
- package/operand/application/useCases/clone.d.ts +7 -0
- package/operand/application/useCases/clone.js +39 -0
- package/operand/application/useCases/clone.js.map +1 -0
- package/operand/application/useCases/complete.d.ts +7 -0
- package/operand/application/useCases/complete.js +40 -0
- package/operand/application/useCases/complete.js.map +1 -0
- package/operand/application/useCases/normalize.d.ts +6 -0
- package/{application/operand/useCases/normalizer.js → operand/application/useCases/normalize.js} +16 -7
- package/operand/application/useCases/normalize.js.map +1 -0
- package/operand/application/useCases/reduce.d.ts +7 -0
- package/{application/operand/useCases/reducer.js → operand/application/useCases/reduce.js} +21 -9
- package/operand/application/useCases/reduce.js.map +1 -0
- package/{domain/operand → operand/domain}/entities.d.ts +4 -49
- package/operand/domain/entities.js +19 -0
- package/operand/domain/entities.js.map +1 -0
- package/operand/domain/index.d.ts +2 -0
- package/{domain → operand/domain}/index.js +1 -3
- package/operand/domain/index.js.map +1 -0
- package/operand/domain/services.d.ts +8 -0
- package/operand/domain/services.js.map +1 -0
- package/operand/infrastructure/constBuilder.d.ts +4 -0
- package/operand/infrastructure/constBuilder.js +25 -0
- package/operand/infrastructure/constBuilder.js.map +1 -0
- package/operand/infrastructure/evaluators/async.d.ts +119 -0
- package/operand/infrastructure/evaluators/async.js +560 -0
- package/operand/infrastructure/evaluators/async.js.map +1 -0
- package/operand/infrastructure/evaluators/sync.d.ts +110 -0
- package/operand/infrastructure/evaluators/sync.js +485 -0
- package/operand/infrastructure/evaluators/sync.js.map +1 -0
- package/operand/infrastructure/helper.d.ts +18 -0
- package/{application/helper/operandHelper.js → operand/infrastructure/helper.js} +23 -8
- package/operand/infrastructure/helper.js.map +1 -0
- package/operand/infrastructure/index.d.ts +2 -0
- package/operand/infrastructure/index.js +23 -0
- package/operand/infrastructure/index.js.map +1 -0
- package/package.json +2 -2
- package/shared/application/helper/expression.d.ts +3 -0
- package/shared/application/helper/expression.js +3 -0
- package/shared/application/helper/expression.js.map +1 -0
- package/shared/application/helper/helper.d.ts +7 -0
- package/shared/application/helper/helper.js +25 -0
- package/shared/application/helper/helper.js.map +1 -0
- package/{application/helper/operandHelper.d.ts → shared/application/helper/operand.d.ts} +1 -2
- package/shared/application/helper/operand.js +3 -0
- package/shared/application/helper/operand.js.map +1 -0
- package/shared/application/index.d.ts +3 -0
- package/{application/expression → shared/application}/index.js +3 -3
- package/shared/application/index.js.map +1 -0
- package/shared/domain/base.js.map +1 -0
- package/shared/domain/context.js.map +1 -0
- package/{domain/entities → shared/domain}/index.d.ts +1 -0
- package/{domain/entities → shared/domain}/index.js +1 -0
- package/shared/domain/index.js.map +1 -0
- package/{domain/entities → shared/domain}/observer.d.ts +1 -1
- package/shared/domain/observer.js.map +1 -0
- package/shared/domain/operand.d.ts +50 -0
- package/{domain/operand/entities.js → shared/domain/operand.js} +2 -17
- package/shared/domain/operand.js.map +1 -0
- package/shared/domain/signals.js.map +1 -0
- package/application/expression/index.d.ts +0 -3
- package/application/expression/index.js.map +0 -1
- package/application/expression/services/parser.js.map +0 -1
- package/application/expression/useCases/normalize.js.map +0 -1
- package/application/expression/useCases/parse.d.ts +0 -6
- package/application/expression/useCases/parse.js +0 -15
- package/application/expression/useCases/parse.js.map +0 -1
- package/application/helper/helper.d.ts +0 -13
- package/application/helper/helper.js +0 -45
- package/application/helper/helper.js.map +0 -1
- package/application/helper/index.d.ts +0 -2
- package/application/helper/index.js.map +0 -1
- package/application/helper/operandHelper.js.map +0 -1
- package/application/index.d.ts +0 -5
- package/application/index.js.map +0 -1
- package/application/model/index.js.map +0 -1
- package/application/model/library.js.map +0 -1
- package/application/model/modelService.js.map +0 -1
- package/application/operand/index.d.ts +0 -10
- package/application/operand/index.js.map +0 -1
- package/application/operand/services/operandService.d.ts +0 -13
- package/application/operand/services/operandService.js +0 -62
- package/application/operand/services/operandService.js.map +0 -1
- package/application/operand/services/parameterService.d.ts +0 -4
- package/application/operand/services/typeService.js.map +0 -1
- package/application/operand/useCases/build/basicOperandBuilder.d.ts +0 -6
- package/application/operand/useCases/build/basicOperandBuilder.js +0 -15
- package/application/operand/useCases/build/basicOperandBuilder.js.map +0 -1
- package/application/operand/useCases/build/factory/basic/evaluators.d.ts +0 -67
- package/application/operand/useCases/build/factory/basic/evaluators.js +0 -239
- package/application/operand/useCases/build/factory/basic/evaluators.js.map +0 -1
- package/application/operand/useCases/build/factory/basic/factory.d.ts +0 -11
- package/application/operand/useCases/build/factory/basic/factory.js +0 -128
- package/application/operand/useCases/build/factory/basic/factory.js.map +0 -1
- package/application/operand/useCases/build/factory/index.d.ts +0 -2
- package/application/operand/useCases/build/factory/index.js.map +0 -1
- package/application/operand/useCases/build/factory/process/evaluators.d.ts +0 -58
- package/application/operand/useCases/build/factory/process/evaluators.js +0 -317
- package/application/operand/useCases/build/factory/process/evaluators.js.map +0 -1
- package/application/operand/useCases/build/factory/process/factory.d.ts +0 -8
- package/application/operand/useCases/build/factory/process/factory.js +0 -122
- package/application/operand/useCases/build/factory/process/factory.js.map +0 -1
- package/application/operand/useCases/build/operandBuilder.d.ts +0 -15
- package/application/operand/useCases/build/operandBuilder.js +0 -46
- package/application/operand/useCases/build/operandBuilder.js.map +0 -1
- package/application/operand/useCases/build/processOperandBuilder.d.ts +0 -6
- package/application/operand/useCases/build/processOperandBuilder.js +0 -15
- package/application/operand/useCases/build/processOperandBuilder.js.map +0 -1
- package/application/operand/useCases/normalizer.d.ts +0 -7
- package/application/operand/useCases/normalizer.js.map +0 -1
- package/application/operand/useCases/reducer.d.ts +0 -7
- package/application/operand/useCases/reducer.js.map +0 -1
- package/application/ports/expressions.js.map +0 -1
- package/domain/entities/base.js.map +0 -1
- package/domain/entities/context.js.map +0 -1
- package/domain/entities/index.js.map +0 -1
- package/domain/entities/observer.js.map +0 -1
- package/domain/entities/signals.js.map +0 -1
- package/domain/index.d.ts +0 -4
- package/domain/index.js.map +0 -1
- package/domain/model/services.js.map +0 -1
- package/domain/operand/entities.js.map +0 -1
- package/domain/operand/services.d.ts +0 -23
- package/domain/operand/services.js.map +0 -1
- package/infrastructure/expression/builder.d.ts +0 -5
- package/infrastructure/expression/builder.js +0 -18
- package/infrastructure/expression/builder.js.map +0 -1
- package/infrastructure/expression/convertFromFunction.d.ts +0 -11
- package/infrastructure/expression/convertFromFunction.js +0 -45
- package/infrastructure/expression/convertFromFunction.js.map +0 -1
- package/infrastructure/expression/convertFromGraphql.d.ts +0 -3
- package/infrastructure/expression/convertFromGraphql.js.map +0 -1
- package/infrastructure/expression/expressions.js.map +0 -1
- package/infrastructure/index.d.ts +0 -19
- package/infrastructure/index.js +0 -52
- package/infrastructure/index.js.map +0 -1
- /package/{application/ports → expression/domain}/expressions.js +0 -0
- /package/{domain/model → model/domain}/services.js +0 -0
- /package/{domain/operand → operand/domain}/services.js +0 -0
- /package/{domain/entities → shared/domain}/base.d.ts +0 -0
- /package/{domain/entities → shared/domain}/base.js +0 -0
- /package/{domain/entities → shared/domain}/context.d.ts +0 -0
- /package/{domain/entities → shared/domain}/context.js +0 -0
- /package/{domain/entities → shared/domain}/observer.js +0 -0
- /package/{domain/entities → shared/domain}/signals.d.ts +0 -0
- /package/{domain/entities → shared/domain}/signals.js +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Operand, IEvaluator, IEvaluatorFactory, IModelService, Position } from '../../../../../../domain';
|
|
2
|
-
export declare class ConstBuilder {
|
|
3
|
-
build(pos: Position, value: any): Operand;
|
|
4
|
-
}
|
|
5
|
-
export declare class EvaluatorFactory implements IEvaluatorFactory {
|
|
6
|
-
protected readonly model: IModelService;
|
|
7
|
-
constructor(model: IModelService);
|
|
8
|
-
protected createOperator(operand: Operand): IEvaluator;
|
|
9
|
-
protected createFunction(operand: Operand): IEvaluator;
|
|
10
|
-
create(operand: Operand): IEvaluator | undefined;
|
|
11
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EvaluatorFactory = exports.ConstBuilder = void 0;
|
|
4
|
-
const domain_1 = require("../../../../../../domain");
|
|
5
|
-
const typ3s_1 = require("typ3s");
|
|
6
|
-
const evaluators_1 = require("./evaluators");
|
|
7
|
-
class ConstBuilder {
|
|
8
|
-
build(pos, value) {
|
|
9
|
-
const operand = new domain_1.Operand(pos, value, domain_1.OperandType.Const, [], typ3s_1.Type.get(value));
|
|
10
|
-
operand.evaluator = new evaluators_1.ConstEvaluator(operand);
|
|
11
|
-
return operand;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ConstBuilder = ConstBuilder;
|
|
15
|
-
class EvaluatorFactory {
|
|
16
|
-
// eslint-disable-next-line no-useless-constructor
|
|
17
|
-
constructor(model) {
|
|
18
|
-
this.model = model;
|
|
19
|
-
}
|
|
20
|
-
createOperator(operand) {
|
|
21
|
-
const operatorMetadata = this.model.getOperator(operand.name, operand.children.length);
|
|
22
|
-
if (operatorMetadata.custom) {
|
|
23
|
-
return operatorMetadata.custom.clone(operand);
|
|
24
|
-
}
|
|
25
|
-
else if (operatorMetadata.function !== undefined) {
|
|
26
|
-
return new evaluators_1.CallFuncEvaluator(operand, operatorMetadata.function);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
throw new Error(`Operator ${operand.name} not implemented`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
createFunction(operand) {
|
|
33
|
-
const operatorMetadata = this.model.getFunction(operand.name);
|
|
34
|
-
if (operatorMetadata.custom) {
|
|
35
|
-
return operatorMetadata.custom.clone(operand);
|
|
36
|
-
}
|
|
37
|
-
else if (operatorMetadata.function !== undefined) {
|
|
38
|
-
return new evaluators_1.CallFuncEvaluator(operand, operatorMetadata.function);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
throw new Error(`Function ${operand.name} not implemented`);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
create(operand) {
|
|
45
|
-
let evaluator;
|
|
46
|
-
switch (operand.type) {
|
|
47
|
-
case domain_1.OperandType.Const:
|
|
48
|
-
evaluator = new evaluators_1.ConstEvaluator(operand);
|
|
49
|
-
break;
|
|
50
|
-
case domain_1.OperandType.Var:
|
|
51
|
-
evaluator = new evaluators_1.VarEvaluator(operand);
|
|
52
|
-
break;
|
|
53
|
-
case domain_1.OperandType.Env:
|
|
54
|
-
evaluator = new evaluators_1.EnvEvaluator(operand);
|
|
55
|
-
break;
|
|
56
|
-
case domain_1.OperandType.Template:
|
|
57
|
-
evaluator = new evaluators_1.TemplateEvaluator(operand);
|
|
58
|
-
break;
|
|
59
|
-
case domain_1.OperandType.Property:
|
|
60
|
-
evaluator = new evaluators_1.PropertyEvaluator(operand);
|
|
61
|
-
break;
|
|
62
|
-
case domain_1.OperandType.List:
|
|
63
|
-
evaluator = new evaluators_1.ListEvaluator(operand);
|
|
64
|
-
break;
|
|
65
|
-
case domain_1.OperandType.Obj:
|
|
66
|
-
evaluator = new evaluators_1.ObjEvaluator(operand);
|
|
67
|
-
break;
|
|
68
|
-
case domain_1.OperandType.Operator:
|
|
69
|
-
evaluator = this.createOperator(operand);
|
|
70
|
-
break;
|
|
71
|
-
case domain_1.OperandType.CallFunc:
|
|
72
|
-
case domain_1.OperandType.Arrow:
|
|
73
|
-
case domain_1.OperandType.ChildFunc:
|
|
74
|
-
evaluator = this.createFunction(operand);
|
|
75
|
-
break;
|
|
76
|
-
case domain_1.OperandType.Block:
|
|
77
|
-
evaluator = new evaluators_1.BlockEvaluator(operand);
|
|
78
|
-
break;
|
|
79
|
-
case domain_1.OperandType.If:
|
|
80
|
-
evaluator = new evaluators_1.IfEvaluator(operand);
|
|
81
|
-
break;
|
|
82
|
-
case domain_1.OperandType.While:
|
|
83
|
-
evaluator = new evaluators_1.WhileEvaluator(operand);
|
|
84
|
-
break;
|
|
85
|
-
case domain_1.OperandType.For:
|
|
86
|
-
evaluator = new evaluators_1.ForEvaluator(operand);
|
|
87
|
-
break;
|
|
88
|
-
case domain_1.OperandType.ForIn:
|
|
89
|
-
evaluator = new evaluators_1.ForInEvaluator(operand);
|
|
90
|
-
break;
|
|
91
|
-
case domain_1.OperandType.Switch:
|
|
92
|
-
evaluator = new evaluators_1.SwitchEvaluator(operand);
|
|
93
|
-
break;
|
|
94
|
-
case domain_1.OperandType.Break:
|
|
95
|
-
evaluator = new evaluators_1.BreakEvaluator(operand);
|
|
96
|
-
break;
|
|
97
|
-
case domain_1.OperandType.Continue:
|
|
98
|
-
evaluator = new evaluators_1.ContinueEvaluator(operand);
|
|
99
|
-
break;
|
|
100
|
-
case domain_1.OperandType.Func:
|
|
101
|
-
evaluator = new evaluators_1.FuncEvaluator(operand);
|
|
102
|
-
break;
|
|
103
|
-
case domain_1.OperandType.Return:
|
|
104
|
-
evaluator = new evaluators_1.ReturnEvaluator(operand);
|
|
105
|
-
break;
|
|
106
|
-
case domain_1.OperandType.Try:
|
|
107
|
-
evaluator = new evaluators_1.TryEvaluator(operand);
|
|
108
|
-
break;
|
|
109
|
-
case domain_1.OperandType.Catch:
|
|
110
|
-
evaluator = new evaluators_1.CatchEvaluator(operand);
|
|
111
|
-
break;
|
|
112
|
-
case domain_1.OperandType.Throw:
|
|
113
|
-
evaluator = new evaluators_1.ThrowEvaluator(operand);
|
|
114
|
-
break;
|
|
115
|
-
case domain_1.OperandType.Default:
|
|
116
|
-
case domain_1.OperandType.Case:
|
|
117
|
-
case domain_1.OperandType.KeyVal:
|
|
118
|
-
case domain_1.OperandType.ElseIf:
|
|
119
|
-
case domain_1.OperandType.Else:
|
|
120
|
-
break;
|
|
121
|
-
default:
|
|
122
|
-
throw new Error(`Evaluator for ${operand.type} ${operand.name} not found`);
|
|
123
|
-
}
|
|
124
|
-
return evaluator;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.EvaluatorFactory = EvaluatorFactory;
|
|
128
|
-
//# sourceMappingURL=factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../../../../../src/lib/application/operand/useCases/build/factory/basic/factory.ts"],"names":[],"mappings":";;;AACA,qDAAuH;AACvH,iCAA4B;AAC5B,6CAKqB;AAErB,MAAa,YAAY;IACjB,KAAK,CAAE,GAAY,EAAE,KAAS;QACpC,MAAM,OAAO,GAAG,IAAI,gBAAO,CAAC,GAAG,EAAE,KAAK,EAAE,oBAAW,CAAC,KAAK,EAAE,EAAE,EAAE,YAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;QAC/E,OAAO,CAAC,SAAS,GAAG,IAAI,2BAAc,CAAC,OAAO,CAAC,CAAA;QAC/C,OAAO,OAAO,CAAA;IACf,CAAC;CACD;AAND,oCAMC;AAED,MAAa,gBAAgB;IAC5B,kDAAkD;IAClD,YAAuC,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAI,CAAC;IAEtD,cAAc,CAAE,OAAe;QACxC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QACtF,IAAI,gBAAgB,CAAC,MAAM,EAAE;YAC5B,OAAO,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;SAC7C;aAAM,IAAI,gBAAgB,CAAC,QAAQ,KAAK,SAAS,EAAE;YACnD,OAAO,IAAI,8BAAiB,CAAC,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAA;SAChE;aAAM;YACN,MAAM,IAAI,KAAK,CAAC,YAAY,OAAO,CAAC,IAAI,kBAAkB,CAAC,CAAA;SAC3D;IACF,CAAC;IAES,cAAc,CAAE,OAAe;QACxC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,C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GAAG;gBACnB,SAAS,GAAG,IAAI,yBAAY,CAAC,OAAO,CAAC,CAAA;gBACrC,MAAK;YACN,KAAK,oBAAW,CAAC,KAAK;gBACrB,SAAS,GAAG,IAAI,2BAAc,CAAC,OAAO,CAAC,CAAA;gBACvC,MAAK;YACN,KAAK,oBAAW,CAAC,KAAK;gBACrB,SAAS,GAAG,IAAI,2BAAc,CAAC,OAAO,CAAC,CAAA;gBACvC,MAAK;YACN,KAAK,oBAAW,CAAC,OAAO,CAAC;YACzB,KAAK,oBAAW,CAAC,IAAI,CAAC;YACtB,KAAK,oBAAW,CAAC,MAAM,CAAC;YACxB,KAAK,oBAAW,CAAC,MAAM,CAAC;YACxB,KAAK,oBAAW,CAAC,IAAI;gBACpB,MAAK;YACN;gBACC,MAAM,IAAI,KAAK,CAAC,iBAAiB,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,YAAY,CAAC,CAAA;SAC1E;QACD,OAAO,SAAS,CAAA;IACjB,CAAC;CACD;AA5GD,4CA4GC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/application/operand/useCases/build/factory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,oDAAiC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Evaluator, Context, Step, Operand } from '../../../../../../domain';
|
|
2
|
-
export declare class PropertyProcessEvaluator extends Evaluator {
|
|
3
|
-
eval(context: Context): any;
|
|
4
|
-
}
|
|
5
|
-
export declare abstract class ProcessEvaluator {
|
|
6
|
-
protected readonly operand: Operand;
|
|
7
|
-
constructor(operand: Operand);
|
|
8
|
-
abstract eval(context: Context, step: Step): any;
|
|
9
|
-
protected solveChildren(context: Context, step: Step): any;
|
|
10
|
-
}
|
|
11
|
-
export declare class StackEvaluator extends Evaluator {
|
|
12
|
-
protected readonly operand: Operand;
|
|
13
|
-
private readonly child;
|
|
14
|
-
constructor(operand: Operand, child: ProcessEvaluator);
|
|
15
|
-
eval(context: Context): any;
|
|
16
|
-
}
|
|
17
|
-
export declare class ListProcessEvaluator extends ProcessEvaluator {
|
|
18
|
-
eval(context: Context, step: Step): any;
|
|
19
|
-
}
|
|
20
|
-
export declare class ObjProcessEvaluator extends ProcessEvaluator {
|
|
21
|
-
eval(context: Context, step: Step): any;
|
|
22
|
-
}
|
|
23
|
-
export declare class CallFuncProcessEvaluator extends ProcessEvaluator {
|
|
24
|
-
protected readonly operand: Operand;
|
|
25
|
-
private readonly _function;
|
|
26
|
-
constructor(operand: Operand, _function: Function);
|
|
27
|
-
eval(context: Context, step: Step): any;
|
|
28
|
-
}
|
|
29
|
-
export declare class BlockProcessEvaluator extends ProcessEvaluator {
|
|
30
|
-
eval(context: Context, step: Step): any;
|
|
31
|
-
}
|
|
32
|
-
export declare class IfProcessEvaluator extends ProcessEvaluator {
|
|
33
|
-
eval(context: Context, step: Step): any;
|
|
34
|
-
}
|
|
35
|
-
export declare class WhileProcessEvaluator extends ProcessEvaluator {
|
|
36
|
-
eval(context: Context, step: Step): any;
|
|
37
|
-
}
|
|
38
|
-
export declare class ForProcessEvaluator extends ProcessEvaluator {
|
|
39
|
-
eval(context: Context, step: Step): any;
|
|
40
|
-
}
|
|
41
|
-
export declare class ForInProcessEvaluator extends ProcessEvaluator {
|
|
42
|
-
eval(context: Context, step: Step): any;
|
|
43
|
-
}
|
|
44
|
-
export declare class SwitchProcessEvaluator extends ProcessEvaluator {
|
|
45
|
-
eval(context: Context, step: Step): any;
|
|
46
|
-
}
|
|
47
|
-
export declare class FuncProcessEvaluator extends ProcessEvaluator {
|
|
48
|
-
eval(): any;
|
|
49
|
-
}
|
|
50
|
-
export declare class TryProcessEvaluator extends Evaluator {
|
|
51
|
-
eval(): any;
|
|
52
|
-
}
|
|
53
|
-
export declare class CatchProcessEvaluator extends Evaluator {
|
|
54
|
-
eval(): any;
|
|
55
|
-
}
|
|
56
|
-
export declare class ThrowProcessEvaluator extends Evaluator {
|
|
57
|
-
eval(): any;
|
|
58
|
-
}
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThrowProcessEvaluator = exports.CatchProcessEvaluator = exports.TryProcessEvaluator = exports.FuncProcessEvaluator = exports.SwitchProcessEvaluator = exports.ForInProcessEvaluator = exports.ForProcessEvaluator = exports.WhileProcessEvaluator = exports.IfProcessEvaluator = exports.BlockProcessEvaluator = exports.CallFuncProcessEvaluator = exports.ObjProcessEvaluator = exports.ListProcessEvaluator = exports.StackEvaluator = exports.ProcessEvaluator = exports.PropertyProcessEvaluator = void 0;
|
|
4
|
-
const h3lp_1 = require("h3lp");
|
|
5
|
-
const domain_1 = require("../../../../../../domain");
|
|
6
|
-
class PropertyProcessEvaluator extends domain_1.Evaluator {
|
|
7
|
-
eval(context) {
|
|
8
|
-
const value = this.operand.children[0].eval(context);
|
|
9
|
-
if (value === undefined || value === null)
|
|
10
|
-
return null;
|
|
11
|
-
return h3lp_1.h3lp.obj.getValue(value, this.operand.name);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.PropertyProcessEvaluator = PropertyProcessEvaluator;
|
|
15
|
-
class ProcessEvaluator {
|
|
16
|
-
// eslint-disable-next-line no-useless-constructor
|
|
17
|
-
constructor(operand) {
|
|
18
|
-
this.operand = operand;
|
|
19
|
-
}
|
|
20
|
-
solveChildren(context, step) {
|
|
21
|
-
for (let i = step.values.length - 1; i < this.operand.children.length; i++) {
|
|
22
|
-
const value = this.operand.children[i].eval(context);
|
|
23
|
-
if (context.token.isBreak) {
|
|
24
|
-
return value;
|
|
25
|
-
}
|
|
26
|
-
step.values.push(value);
|
|
27
|
-
}
|
|
28
|
-
return step.values;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.ProcessEvaluator = ProcessEvaluator;
|
|
32
|
-
class StackEvaluator extends domain_1.Evaluator {
|
|
33
|
-
// eslint-disable-next-line no-useless-constructor
|
|
34
|
-
constructor(operand, child) {
|
|
35
|
-
super(operand);
|
|
36
|
-
this.operand = operand;
|
|
37
|
-
this.child = child;
|
|
38
|
-
}
|
|
39
|
-
eval(context) {
|
|
40
|
-
if (this.operand.id === undefined) {
|
|
41
|
-
throw new Error(`Operand ${this.operand.name} id undefined`);
|
|
42
|
-
}
|
|
43
|
-
let step = context.token.stack[this.operand.id];
|
|
44
|
-
if (step === undefined) {
|
|
45
|
-
step = new domain_1.Step(this.operand.name, this.operand.id);
|
|
46
|
-
context.token.stack[this.operand.id] = step;
|
|
47
|
-
}
|
|
48
|
-
const result = this.child.eval(context, step);
|
|
49
|
-
if (!context.token.isBreak) {
|
|
50
|
-
// remove stack
|
|
51
|
-
delete context.token.stack[this.operand.id];
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.StackEvaluator = StackEvaluator;
|
|
57
|
-
class ListProcessEvaluator extends ProcessEvaluator {
|
|
58
|
-
eval(context, step) {
|
|
59
|
-
return this.solveChildren(context, step);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.ListProcessEvaluator = ListProcessEvaluator;
|
|
63
|
-
class ObjProcessEvaluator extends ProcessEvaluator {
|
|
64
|
-
eval(context, step) {
|
|
65
|
-
const result = this.solveChildren(context, step);
|
|
66
|
-
if (context.token.isBreak) {
|
|
67
|
-
return result;
|
|
68
|
-
}
|
|
69
|
-
const obj = {};
|
|
70
|
-
for (let i = 0; i < result.length; i++) {
|
|
71
|
-
obj[this.operand.children[i].name] = result;
|
|
72
|
-
}
|
|
73
|
-
return obj;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
exports.ObjProcessEvaluator = ObjProcessEvaluator;
|
|
77
|
-
class CallFuncProcessEvaluator extends ProcessEvaluator {
|
|
78
|
-
// eslint-disable-next-line no-useless-constructor, @typescript-eslint/ban-types
|
|
79
|
-
constructor(operand, _function) {
|
|
80
|
-
super(operand);
|
|
81
|
-
this.operand = operand;
|
|
82
|
-
this._function = _function;
|
|
83
|
-
}
|
|
84
|
-
eval(context, step) {
|
|
85
|
-
const result = this.solveChildren(context, step);
|
|
86
|
-
if (context.token.isBreak) {
|
|
87
|
-
return result;
|
|
88
|
-
}
|
|
89
|
-
return this._function(...result);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.CallFuncProcessEvaluator = CallFuncProcessEvaluator;
|
|
93
|
-
class BlockProcessEvaluator extends ProcessEvaluator {
|
|
94
|
-
eval(context, step) {
|
|
95
|
-
const result = this.solveChildren(context, step);
|
|
96
|
-
if (context.token.isBreak) {
|
|
97
|
-
return result;
|
|
98
|
-
}
|
|
99
|
-
if (result.length > 0) {
|
|
100
|
-
return result[result.length - 1];
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.BlockProcessEvaluator = BlockProcessEvaluator;
|
|
106
|
-
class IfProcessEvaluator extends ProcessEvaluator {
|
|
107
|
-
eval(context, step) {
|
|
108
|
-
if (step.values.length === 0) {
|
|
109
|
-
const condition = this.operand.children[0].eval(context);
|
|
110
|
-
if (context.token.isBreak) {
|
|
111
|
-
return condition;
|
|
112
|
-
}
|
|
113
|
-
step.values.push(condition);
|
|
114
|
-
}
|
|
115
|
-
if (step.values[0]) {
|
|
116
|
-
// if condition is true evaluate block if
|
|
117
|
-
const value = this.operand.children[1].eval(context);
|
|
118
|
-
if (!context.token.isBreak) {
|
|
119
|
-
step.values.push(value);
|
|
120
|
-
}
|
|
121
|
-
return value;
|
|
122
|
-
}
|
|
123
|
-
else if (this.operand.children.length > 2) {
|
|
124
|
-
// if had else if or else , evaluate them
|
|
125
|
-
let value;
|
|
126
|
-
for (let i = step.values.length - 1; i < this.operand.children.length; i++) {
|
|
127
|
-
if (this.operand.children[i].type === domain_1.OperandType.ElseIf) {
|
|
128
|
-
const elseIfCondition = this.operand.children[i].children[0].eval(context);
|
|
129
|
-
if (elseIfCondition) {
|
|
130
|
-
value = this.operand.children[i].children[1].eval(context);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
// else block
|
|
135
|
-
value = this.operand.children[i].eval(context);
|
|
136
|
-
}
|
|
137
|
-
if (context.token.isBreak) {
|
|
138
|
-
return value;
|
|
139
|
-
}
|
|
140
|
-
step.values.push(value);
|
|
141
|
-
}
|
|
142
|
-
return value;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
exports.IfProcessEvaluator = IfProcessEvaluator;
|
|
147
|
-
class WhileProcessEvaluator extends ProcessEvaluator {
|
|
148
|
-
eval(context, step) {
|
|
149
|
-
const condition = this.operand.children[0];
|
|
150
|
-
const block = this.operand.children[1];
|
|
151
|
-
let blockResult = null;
|
|
152
|
-
// evaluate condition
|
|
153
|
-
if (step.values.length === 0) {
|
|
154
|
-
const conditionResult = condition.eval(context);
|
|
155
|
-
if (context.token.isBreak) {
|
|
156
|
-
return conditionResult;
|
|
157
|
-
}
|
|
158
|
-
step.values.push(conditionResult);
|
|
159
|
-
}
|
|
160
|
-
while (step.values[0]) {
|
|
161
|
-
// evaluate condition
|
|
162
|
-
if (step.values.length === 1) {
|
|
163
|
-
blockResult = block.eval(context);
|
|
164
|
-
if (context.token.isBreak) {
|
|
165
|
-
return blockResult;
|
|
166
|
-
}
|
|
167
|
-
step.values.push(blockResult);
|
|
168
|
-
}
|
|
169
|
-
// clear values for next evaluations
|
|
170
|
-
step.values = [];
|
|
171
|
-
// evaluate condition
|
|
172
|
-
const conditionResult = condition.eval(context);
|
|
173
|
-
if (context.token.isBreak) {
|
|
174
|
-
return conditionResult;
|
|
175
|
-
}
|
|
176
|
-
step.values.push(conditionResult);
|
|
177
|
-
}
|
|
178
|
-
return blockResult;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
exports.WhileProcessEvaluator = WhileProcessEvaluator;
|
|
182
|
-
class ForProcessEvaluator extends ProcessEvaluator {
|
|
183
|
-
eval(context, step) {
|
|
184
|
-
let lastValue = null;
|
|
185
|
-
const initialize = this.operand.children[0];
|
|
186
|
-
const condition = this.operand.children[1];
|
|
187
|
-
const increment = this.operand.children[2];
|
|
188
|
-
const block = this.operand.children[3];
|
|
189
|
-
// evaluate initialize
|
|
190
|
-
if (step.values.length === 0) {
|
|
191
|
-
const initializeResult = initialize.eval(context);
|
|
192
|
-
if (context.token.isBreak) {
|
|
193
|
-
return initializeResult;
|
|
194
|
-
}
|
|
195
|
-
step.values.push(initializeResult);
|
|
196
|
-
}
|
|
197
|
-
// evaluate condition
|
|
198
|
-
if (step.values.length === 1) {
|
|
199
|
-
const conditionResult = condition.eval(context);
|
|
200
|
-
if (context.token.isBreak) {
|
|
201
|
-
return conditionResult;
|
|
202
|
-
}
|
|
203
|
-
step.values.push(conditionResult);
|
|
204
|
-
}
|
|
205
|
-
while (step.values[1]) {
|
|
206
|
-
// evaluate block
|
|
207
|
-
if (step.values.length === 2) {
|
|
208
|
-
lastValue = block.eval(context);
|
|
209
|
-
if (context.token.isBreak) {
|
|
210
|
-
return lastValue;
|
|
211
|
-
}
|
|
212
|
-
step.values.push(lastValue);
|
|
213
|
-
}
|
|
214
|
-
// evaluate increment
|
|
215
|
-
if (step.values.length === 3) {
|
|
216
|
-
const incrementResult = increment.eval(context);
|
|
217
|
-
if (context.token.isBreak) {
|
|
218
|
-
return incrementResult;
|
|
219
|
-
}
|
|
220
|
-
step.values.push(incrementResult);
|
|
221
|
-
}
|
|
222
|
-
// clear values for next evaluations
|
|
223
|
-
step.values = [step.values[0]];
|
|
224
|
-
// evaluate condition
|
|
225
|
-
const conditionResult = condition.eval(context);
|
|
226
|
-
if (context.token.isBreak) {
|
|
227
|
-
return conditionResult;
|
|
228
|
-
}
|
|
229
|
-
step.values.push(conditionResult);
|
|
230
|
-
}
|
|
231
|
-
return lastValue;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
exports.ForProcessEvaluator = ForProcessEvaluator;
|
|
235
|
-
class ForInProcessEvaluator extends ProcessEvaluator {
|
|
236
|
-
eval(context, step) {
|
|
237
|
-
let lastValue = null;
|
|
238
|
-
const item = this.operand.children[0];
|
|
239
|
-
const list = this.operand.children[1];
|
|
240
|
-
const block = this.operand.children[2];
|
|
241
|
-
let listResult = [];
|
|
242
|
-
// evaluate list
|
|
243
|
-
if (step.values.length === 0) {
|
|
244
|
-
listResult = list.eval(context);
|
|
245
|
-
if (context.token.isBreak) {
|
|
246
|
-
return listResult;
|
|
247
|
-
}
|
|
248
|
-
step.values.push(listResult);
|
|
249
|
-
}
|
|
250
|
-
for (let i = step.values.length - 1; i < listResult.length; i++) {
|
|
251
|
-
const value = listResult[i];
|
|
252
|
-
if (context) {
|
|
253
|
-
context.data.set(item.name, value);
|
|
254
|
-
}
|
|
255
|
-
lastValue = block.eval(context);
|
|
256
|
-
if (context.token.isBreak) {
|
|
257
|
-
return lastValue;
|
|
258
|
-
}
|
|
259
|
-
step.values.push(lastValue);
|
|
260
|
-
}
|
|
261
|
-
return lastValue;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
exports.ForInProcessEvaluator = ForInProcessEvaluator;
|
|
265
|
-
class SwitchProcessEvaluator extends ProcessEvaluator {
|
|
266
|
-
eval(context, step) {
|
|
267
|
-
// evaluate
|
|
268
|
-
let value;
|
|
269
|
-
if (step.values.length === 0) {
|
|
270
|
-
value = this.operand.children[0].eval(context);
|
|
271
|
-
if (context.token.isBreak) {
|
|
272
|
-
return value;
|
|
273
|
-
}
|
|
274
|
-
step.values.push(value);
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
value = step.values[0];
|
|
278
|
-
}
|
|
279
|
-
for (let i = 1; i < this.operand.children.length; i++) {
|
|
280
|
-
const option = this.operand.children[i];
|
|
281
|
-
if (option.type === domain_1.OperandType.Case) {
|
|
282
|
-
if (option.name === value) {
|
|
283
|
-
return option.children[0].eval(context);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
else if (option.type === domain_1.OperandType.Default) {
|
|
287
|
-
return option.children[0].eval(context);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
exports.SwitchProcessEvaluator = SwitchProcessEvaluator;
|
|
293
|
-
class FuncProcessEvaluator extends ProcessEvaluator {
|
|
294
|
-
eval() {
|
|
295
|
-
throw new Error('NotImplemented');
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
exports.FuncProcessEvaluator = FuncProcessEvaluator;
|
|
299
|
-
class TryProcessEvaluator extends domain_1.Evaluator {
|
|
300
|
-
eval() {
|
|
301
|
-
throw new Error('NotImplemented');
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
exports.TryProcessEvaluator = TryProcessEvaluator;
|
|
305
|
-
class CatchProcessEvaluator extends domain_1.Evaluator {
|
|
306
|
-
eval() {
|
|
307
|
-
throw new Error('NotImplemented');
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
exports.CatchProcessEvaluator = CatchProcessEvaluator;
|
|
311
|
-
class ThrowProcessEvaluator extends domain_1.Evaluator {
|
|
312
|
-
eval() {
|
|
313
|
-
throw new Error('NotImplemented');
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
exports.ThrowProcessEvaluator = ThrowProcessEvaluator;
|
|
317
|
-
//# sourceMappingURL=evaluators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evaluators.js","sourceRoot":"","sources":["../../../../../../../../src/lib/application/operand/useCases/build/factory/process/evaluators.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qDAAyF;AAEzF,MAAa,wBAAyB,SAAQ,kBAAS;IAC/C,IAAI,CAAE,OAAgB;QAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACpD,IA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,CAAC,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACD;AAJD,sDAIC;AACD,MAAa,qBAAsB,SAAQ,kBAAS;IAC5C,IAAI;QACV,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACD;AAJD,sDAIC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Operand, IEvaluator, IEvaluatorFactory, IModelService } from '../../../../../../domain';
|
|
2
|
-
export declare class ProcessEvaluatorFactory implements IEvaluatorFactory {
|
|
3
|
-
protected readonly model: IModelService;
|
|
4
|
-
constructor(model: IModelService);
|
|
5
|
-
protected createOperator(operand: Operand): IEvaluator;
|
|
6
|
-
protected createFunction(operand: Operand): IEvaluator;
|
|
7
|
-
create(operand: Operand): IEvaluator | undefined;
|
|
8
|
-
}
|