mlogjs 0.2.1 → 0.3.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 +1 -1
- package/README.md +2 -2
- package/build/Compiler.js +104 -99
- package/build/Compiler.js.map +1 -1
- package/build/CompilerError.js +11 -0
- package/build/CompilerError.js.map +1 -0
- package/build/Scope.js +70 -60
- package/build/Scope.js.map +1 -1
- package/build/bin.js +74 -60
- package/build/bin.js.map +1 -1
- package/build/handlers/BlockStatement.js +13 -13
- package/build/handlers/BlockStatement.js.map +1 -1
- package/build/handlers/CallExpression.js +19 -19
- package/build/handlers/CallExpression.js.map +1 -1
- package/build/handlers/File.js +9 -0
- package/build/handlers/File.js.map +1 -0
- package/build/handlers/ForStatement.js +31 -31
- package/build/handlers/ForStatement.js.map +1 -1
- package/build/handlers/Function.js +46 -35
- package/build/handlers/Function.js.map +1 -1
- package/build/handlers/Identifier.js +7 -7
- package/build/handlers/IfStatement.js +24 -24
- package/build/handlers/IfStatement.js.map +1 -1
- package/build/handlers/Literal.js +14 -17
- package/build/handlers/Literal.js.map +1 -1
- package/build/handlers/Object.js +54 -43
- package/build/handlers/Object.js.map +1 -1
- package/build/handlers/OperationExpressions.js +37 -32
- package/build/handlers/OperationExpressions.js.map +1 -1
- package/build/handlers/Program.js +8 -8
- package/build/handlers/Program.js.map +1 -1
- package/build/handlers/Statements.js +29 -29
- package/build/handlers/Statements.js.map +1 -1
- package/build/handlers/TemplateExpression.js +17 -17
- package/build/handlers/TemplateExpression.js.map +1 -1
- package/build/handlers/VariableDeclaration.js +71 -55
- package/build/handlers/VariableDeclaration.js.map +1 -1
- package/build/handlers/WhileStatement.js +22 -22
- package/build/handlers/WhileStatement.js.map +1 -1
- package/build/handlers/index.js +31 -30
- package/build/handlers/index.js.map +1 -1
- package/build/index.js +7 -7
- package/build/index.js.map +1 -1
- package/build/initScope.js +39 -39
- package/build/instructions/AddressResolver.js +30 -30
- package/build/instructions/ControlInstructions.js +22 -22
- package/build/instructions/EndInstruction.js +10 -10
- package/build/instructions/InstructionBase.js +20 -20
- package/build/instructions/InstructionBase.js.map +1 -1
- package/build/instructions/JumpInstruction.js +21 -21
- package/build/instructions/JumpInstruction.js.map +1 -1
- package/build/instructions/OperationInstruction.js +10 -10
- package/build/instructions/OperationInstruction.js.map +1 -1
- package/build/instructions/SetCounterInstruction.js +10 -10
- package/build/instructions/SetInstruction.js +10 -10
- package/build/instructions/ZeroSpaceInstruction.js +10 -10
- package/build/instructions/index.js +25 -25
- package/build/macros/Building.js +88 -80
- package/build/macros/Building.js.map +1 -1
- package/build/macros/Function.js +19 -19
- package/build/macros/Function.js.map +1 -1
- package/build/macros/Math.js +61 -56
- package/build/macros/Math.js.map +1 -1
- package/build/macros/Memory.js +62 -60
- package/build/macros/Memory.js.map +1 -1
- package/build/macros/Namespace.js +110 -97
- package/build/macros/Namespace.js.map +1 -1
- package/build/macros/Other.js +20 -19
- package/build/macros/Other.js.map +1 -1
- package/build/macros/RawValue.js +16 -15
- package/build/macros/RawValue.js.map +1 -1
- package/build/macros/commands/Control.js +25 -24
- package/build/macros/commands/Control.js.map +1 -1
- package/build/macros/commands/Draw.js +39 -38
- package/build/macros/commands/Draw.js.map +1 -1
- package/build/macros/commands/DrawFlush.js +17 -16
- package/build/macros/commands/DrawFlush.js.map +1 -1
- package/build/macros/commands/GetLink.js +24 -20
- package/build/macros/commands/GetLink.js.map +1 -1
- package/build/macros/commands/Lookup.js +24 -23
- package/build/macros/commands/Lookup.js.map +1 -1
- package/build/macros/commands/Print.js +17 -13
- package/build/macros/commands/Print.js.map +1 -1
- package/build/macros/commands/PrintFlush.js +17 -16
- package/build/macros/commands/PrintFlush.js.map +1 -1
- package/build/macros/commands/Radar.js +64 -60
- package/build/macros/commands/Radar.js.map +1 -1
- package/build/macros/commands/Sensor.js +20 -19
- package/build/macros/commands/Sensor.js.map +1 -1
- package/build/macros/commands/UnitBind.js +17 -16
- package/build/macros/commands/UnitBind.js.map +1 -1
- package/build/macros/commands/UnitControl.js +72 -67
- package/build/macros/commands/UnitControl.js.map +1 -1
- package/build/macros/commands/UnitLocate.js +75 -54
- package/build/macros/commands/UnitLocate.js.map +1 -1
- package/build/macros/commands/UnitRadar.js +47 -40
- package/build/macros/commands/UnitRadar.js.map +1 -1
- package/build/macros/commands/Wait.js +18 -17
- package/build/macros/commands/Wait.js.map +1 -1
- package/build/macros/commands/index.js +32 -32
- package/build/macros/index.js +39 -39
- package/build/operators.js +101 -101
- package/build/operators.js.map +1 -1
- package/build/types.js +27 -27
- package/build/types.js.map +1 -1
- package/build/utils.js +17 -12
- package/build/utils.js.map +1 -1
- package/build/values/BaseValue.js +111 -111
- package/build/values/BaseValue.js.map +1 -1
- package/build/values/FunctionValue.js +115 -103
- package/build/values/FunctionValue.js.map +1 -1
- package/build/values/LiteralValue.js +88 -87
- package/build/values/LiteralValue.js.map +1 -1
- package/build/values/ObjectValue.js +54 -49
- package/build/values/ObjectValue.js.map +1 -1
- package/build/values/StoreValue.js +31 -30
- package/build/values/StoreValue.js.map +1 -1
- package/build/values/TempValue.js +77 -66
- package/build/values/TempValue.js.map +1 -1
- package/build/values/VoidValue.js +31 -30
- package/build/values/VoidValue.js.map +1 -1
- package/build/values/index.js +22 -22
- package/dist/bin.cjs +82 -0
- package/dist/bin.cjs.map +1 -0
- package/dist/index.cjs +2220 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +2195 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/Compiler.d.ts +26 -0
- package/dist/types/CompilerError.d.ts +9 -0
- package/dist/types/Scope.d.ts +24 -0
- package/dist/types/bin.d.ts +1 -0
- package/dist/types/handlers/BlockStatement.d.ts +2 -0
- package/dist/types/handlers/CallExpression.d.ts +3 -0
- package/dist/types/handlers/File.d.ts +2 -0
- package/dist/types/handlers/ForStatement.d.ts +2 -0
- package/{build → dist/types}/handlers/Function.d.ts +5 -4
- package/{build → dist/types}/handlers/Identifier.d.ts +2 -2
- package/dist/types/handlers/IfStatement.d.ts +2 -0
- package/dist/types/handlers/Literal.d.ts +5 -0
- package/{build → dist/types}/handlers/Object.d.ts +6 -4
- package/{build → dist/types}/handlers/OperationExpressions.d.ts +8 -7
- package/dist/types/handlers/Program.d.ts +2 -0
- package/dist/types/handlers/Statements.d.ts +5 -0
- package/dist/types/handlers/TemplateExpression.d.ts +2 -0
- package/dist/types/handlers/Typescript.d.ts +7 -0
- package/dist/types/handlers/VariableDeclaration.d.ts +3 -0
- package/dist/types/handlers/WhileStatement.d.ts +3 -0
- package/{build → dist/types}/handlers/index.d.ts +16 -14
- package/dist/types/index.d.ts +2 -0
- package/{build → dist/types}/initScope.d.ts +5 -2
- package/{build → dist/types}/instructions/AddressResolver.d.ts +12 -12
- package/{build → dist/types}/instructions/ControlInstructions.d.ts +8 -11
- package/{build → dist/types}/instructions/EndInstruction.d.ts +4 -4
- package/{build → dist/types}/instructions/InstructionBase.d.ts +10 -10
- package/{build → dist/types}/instructions/JumpInstruction.d.ts +15 -15
- package/{build → dist/types}/instructions/OperationInstruction.d.ts +5 -5
- package/{build → dist/types}/instructions/SetCounterInstruction.d.ts +5 -5
- package/{build → dist/types}/instructions/SetInstruction.d.ts +6 -5
- package/{build → dist/types}/instructions/ZeroSpaceInstruction.d.ts +4 -4
- package/{build → dist/types}/instructions/index.d.ts +9 -9
- package/{build → dist/types}/macros/Building.d.ts +10 -11
- package/dist/types/macros/Entities.d.ts +11 -0
- package/dist/types/macros/Function.d.ts +13 -0
- package/dist/types/macros/GetGlobal.d.ts +5 -0
- package/{build → dist/types}/macros/Math.d.ts +5 -5
- package/{build → dist/types}/macros/Memory.d.ts +5 -5
- package/{build → dist/types}/macros/Namespace.d.ts +16 -21
- package/{build → dist/types}/macros/Other.d.ts +5 -5
- package/{build → dist/types}/macros/RawValue.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Control.d.ts +5 -5
- package/dist/types/macros/commands/Draw.d.ts +5 -0
- package/{build → dist/types}/macros/commands/DrawFlush.d.ts +5 -5
- package/{build/macros/commands/Draw.d.ts → dist/types/macros/commands/End.d.ts} +5 -5
- package/{build → dist/types}/macros/commands/GetLink.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Lookup.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Print.d.ts +5 -5
- package/{build → dist/types}/macros/commands/PrintFlush.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Radar.d.ts +7 -7
- package/{build → dist/types}/macros/commands/Sensor.d.ts +5 -5
- package/{build → dist/types}/macros/commands/UnitBind.d.ts +5 -5
- package/dist/types/macros/commands/UnitControl.d.ts +5 -0
- package/{build → dist/types}/macros/commands/UnitLocate.d.ts +5 -5
- package/{build → dist/types}/macros/commands/UnitRadar.d.ts +5 -5
- package/{build → dist/types}/macros/commands/Wait.d.ts +5 -5
- package/{build → dist/types}/macros/commands/index.d.ts +15 -14
- package/{build → dist/types}/macros/index.d.ts +6 -7
- package/{build → dist/types}/operators.d.ts +25 -25
- package/dist/types/types.d.ts +224 -0
- package/dist/types/utils.d.ts +30 -0
- package/dist/types/values/BaseValue.d.ts +7 -0
- package/dist/types/values/DestructuringValue.d.ts +17 -0
- package/dist/types/values/FunctionValue.d.ts +47 -0
- package/{build → dist/types}/values/LiteralValue.d.ts +13 -12
- package/dist/types/values/ObjectValue.d.ts +23 -0
- package/dist/types/values/SenseableValue.d.ts +23 -0
- package/dist/types/values/StackValue.d.ts +16 -0
- package/dist/types/values/StoreValue.d.ts +15 -0
- package/{build → dist/types}/values/TempValue.d.ts +19 -12
- package/dist/types/values/ValueOwner.d.ts +27 -0
- package/dist/types/values/VoidValue.d.ts +16 -0
- package/{build → dist/types}/values/index.d.ts +7 -6
- package/lib/commands.d.ts +242 -36
- package/lib/eslib/lib.es5.d.ts +1 -1
- package/lib/globals.d.ts +172 -159
- package/lib/helpers.d.ts +2 -2
- package/lib/memory.d.ts +1 -1
- package/lib/traits.d.ts +130 -110
- package/package.json +33 -38
- package/build/Compiler.d.ts +0 -18
- package/build/Scope.d.ts +0 -26
- package/build/bin.d.ts +0 -2
- package/build/handlers/BlockStatement.d.ts +0 -2
- package/build/handlers/CallExpression.d.ts +0 -3
- package/build/handlers/ForStatement.d.ts +0 -2
- package/build/handlers/IfStatement.d.ts +0 -2
- package/build/handlers/Literal.d.ts +0 -2
- package/build/handlers/Program.d.ts +0 -2
- package/build/handlers/Statements.d.ts +0 -5
- package/build/handlers/TemplateExpression.d.ts +0 -2
- package/build/handlers/VariableDeclaration.d.ts +0 -3
- package/build/handlers/WhileStatement.d.ts +0 -2
- package/build/index.d.ts +0 -1
- package/build/macros/Function.d.ts +0 -12
- package/build/macros/commands/UnitControl.d.ts +0 -5
- package/build/types.d.ts +0 -49
- package/build/utils.d.ts +0 -3
- package/build/values/BaseValue.d.ts +0 -5
- package/build/values/FunctionValue.d.ts +0 -34
- package/build/values/ObjectValue.d.ts +0 -17
- package/build/values/StoreValue.d.ts +0 -11
- package/build/values/VoidValue.d.ts +0 -11
- package/dist/mlogjs.es.js +0 -6366
- package/dist/mlogjs.umd.js +0 -8
package/build/operators.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.operatorMap = exports.operators = exports.singleOperators = exports.updateOperators = exports.unaryOperators = exports.leftRightOperators = exports.assignmentOperators = exports.bitwiseAssignmentOperators = exports.logicalAssignmentOperators = exports.arithmeticAssignmentOperators = exports.logicalOperators = exports.binaryOperators = exports.bitwiseBinaryOperators = exports.comparisonBinaryOperators = exports.arithmeticBinaryOperators = void 0;
|
|
4
|
-
exports.arithmeticBinaryOperators = [
|
|
5
|
-
"*",
|
|
6
|
-
"**",
|
|
7
|
-
"+",
|
|
8
|
-
"-",
|
|
9
|
-
"/",
|
|
10
|
-
"%",
|
|
11
|
-
];
|
|
12
|
-
exports.comparisonBinaryOperators = [
|
|
13
|
-
"!=",
|
|
14
|
-
"!==",
|
|
15
|
-
"<",
|
|
16
|
-
"<=",
|
|
17
|
-
"==",
|
|
18
|
-
"===",
|
|
19
|
-
">",
|
|
20
|
-
">=",
|
|
21
|
-
];
|
|
22
|
-
exports.bitwiseBinaryOperators = [
|
|
23
|
-
"&",
|
|
24
|
-
"<<",
|
|
25
|
-
">>",
|
|
26
|
-
">>>",
|
|
27
|
-
"^",
|
|
28
|
-
"|",
|
|
29
|
-
];
|
|
30
|
-
exports.binaryOperators = [
|
|
31
|
-
...exports.arithmeticBinaryOperators,
|
|
32
|
-
...exports.comparisonBinaryOperators,
|
|
33
|
-
...exports.bitwiseBinaryOperators,
|
|
34
|
-
"instanceof",
|
|
35
|
-
"in",
|
|
36
|
-
];
|
|
37
|
-
exports.logicalOperators = ["&&", "??", "||"];
|
|
38
|
-
exports.arithmeticAssignmentOperators = [
|
|
39
|
-
"%=",
|
|
40
|
-
"&=",
|
|
41
|
-
"*=",
|
|
42
|
-
"**=",
|
|
43
|
-
"+=",
|
|
44
|
-
"-=",
|
|
45
|
-
"/=",
|
|
46
|
-
];
|
|
47
|
-
exports.logicalAssignmentOperators = ["&&=", "||="];
|
|
48
|
-
exports.bitwiseAssignmentOperators = [
|
|
49
|
-
"<<=",
|
|
50
|
-
">>=",
|
|
51
|
-
">>>=",
|
|
52
|
-
"^=",
|
|
53
|
-
"|=",
|
|
54
|
-
];
|
|
55
|
-
exports.assignmentOperators = [
|
|
56
|
-
...exports.arithmeticAssignmentOperators,
|
|
57
|
-
...exports.logicalAssignmentOperators,
|
|
58
|
-
...exports.bitwiseAssignmentOperators,
|
|
59
|
-
"=",
|
|
60
|
-
];
|
|
61
|
-
exports.leftRightOperators = [
|
|
62
|
-
...exports.binaryOperators,
|
|
63
|
-
...exports.logicalOperators,
|
|
64
|
-
...exports.assignmentOperators,
|
|
65
|
-
];
|
|
66
|
-
exports.unaryOperators = [
|
|
67
|
-
"!",
|
|
68
|
-
"u+",
|
|
69
|
-
"u-",
|
|
70
|
-
"delete",
|
|
71
|
-
"typeof",
|
|
72
|
-
"void",
|
|
73
|
-
"~",
|
|
74
|
-
];
|
|
75
|
-
exports.updateOperators = ["++", "--"];
|
|
76
|
-
exports.singleOperators = [...exports.unaryOperators, ...exports.updateOperators];
|
|
77
|
-
exports.operators = [...exports.leftRightOperators, ...exports.singleOperators];
|
|
78
|
-
exports.operatorMap = {
|
|
79
|
-
"==": "equal",
|
|
80
|
-
"===": "strictEqual",
|
|
81
|
-
"!=": "notEqual",
|
|
82
|
-
"!==": "notEqual",
|
|
83
|
-
"<": "lessThan",
|
|
84
|
-
">": "greaterThan",
|
|
85
|
-
"<=": "lessThanEq",
|
|
86
|
-
">=": "greaterThanEq",
|
|
87
|
-
"+": "add",
|
|
88
|
-
"-": "sub",
|
|
89
|
-
"*": "mul",
|
|
90
|
-
"/": "div",
|
|
91
|
-
"%": "mod",
|
|
92
|
-
"**": "pow",
|
|
93
|
-
"|": "or",
|
|
94
|
-
"&": "and",
|
|
95
|
-
"^": "xor",
|
|
96
|
-
">>": "shr",
|
|
97
|
-
">>>": "shr",
|
|
98
|
-
"<<": "shl",
|
|
99
|
-
"&&": "land",
|
|
100
|
-
"||": "or",
|
|
101
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operatorMap = exports.operators = exports.singleOperators = exports.updateOperators = exports.unaryOperators = exports.leftRightOperators = exports.assignmentOperators = exports.bitwiseAssignmentOperators = exports.logicalAssignmentOperators = exports.arithmeticAssignmentOperators = exports.logicalOperators = exports.binaryOperators = exports.bitwiseBinaryOperators = exports.comparisonBinaryOperators = exports.arithmeticBinaryOperators = void 0;
|
|
4
|
+
exports.arithmeticBinaryOperators = [
|
|
5
|
+
"*",
|
|
6
|
+
"**",
|
|
7
|
+
"+",
|
|
8
|
+
"-",
|
|
9
|
+
"/",
|
|
10
|
+
"%",
|
|
11
|
+
];
|
|
12
|
+
exports.comparisonBinaryOperators = [
|
|
13
|
+
"!=",
|
|
14
|
+
"!==",
|
|
15
|
+
"<",
|
|
16
|
+
"<=",
|
|
17
|
+
"==",
|
|
18
|
+
"===",
|
|
19
|
+
">",
|
|
20
|
+
">=",
|
|
21
|
+
];
|
|
22
|
+
exports.bitwiseBinaryOperators = [
|
|
23
|
+
"&",
|
|
24
|
+
"<<",
|
|
25
|
+
">>",
|
|
26
|
+
">>>",
|
|
27
|
+
"^",
|
|
28
|
+
"|",
|
|
29
|
+
];
|
|
30
|
+
exports.binaryOperators = [
|
|
31
|
+
...exports.arithmeticBinaryOperators,
|
|
32
|
+
...exports.comparisonBinaryOperators,
|
|
33
|
+
...exports.bitwiseBinaryOperators,
|
|
34
|
+
"instanceof",
|
|
35
|
+
"in",
|
|
36
|
+
];
|
|
37
|
+
exports.logicalOperators = ["&&", "??", "||"];
|
|
38
|
+
exports.arithmeticAssignmentOperators = [
|
|
39
|
+
"%=",
|
|
40
|
+
"&=",
|
|
41
|
+
"*=",
|
|
42
|
+
"**=",
|
|
43
|
+
"+=",
|
|
44
|
+
"-=",
|
|
45
|
+
"/=",
|
|
46
|
+
];
|
|
47
|
+
exports.logicalAssignmentOperators = ["&&=", "||="];
|
|
48
|
+
exports.bitwiseAssignmentOperators = [
|
|
49
|
+
"<<=",
|
|
50
|
+
">>=",
|
|
51
|
+
">>>=",
|
|
52
|
+
"^=",
|
|
53
|
+
"|=",
|
|
54
|
+
];
|
|
55
|
+
exports.assignmentOperators = [
|
|
56
|
+
...exports.arithmeticAssignmentOperators,
|
|
57
|
+
...exports.logicalAssignmentOperators,
|
|
58
|
+
...exports.bitwiseAssignmentOperators,
|
|
59
|
+
"=",
|
|
60
|
+
];
|
|
61
|
+
exports.leftRightOperators = [
|
|
62
|
+
...exports.binaryOperators,
|
|
63
|
+
...exports.logicalOperators,
|
|
64
|
+
...exports.assignmentOperators,
|
|
65
|
+
];
|
|
66
|
+
exports.unaryOperators = [
|
|
67
|
+
"!",
|
|
68
|
+
"u+",
|
|
69
|
+
"u-",
|
|
70
|
+
"delete",
|
|
71
|
+
"typeof",
|
|
72
|
+
"void",
|
|
73
|
+
"~",
|
|
74
|
+
];
|
|
75
|
+
exports.updateOperators = ["++", "--"];
|
|
76
|
+
exports.singleOperators = [...exports.unaryOperators, ...exports.updateOperators];
|
|
77
|
+
exports.operators = [...exports.leftRightOperators, ...exports.singleOperators];
|
|
78
|
+
exports.operatorMap = {
|
|
79
|
+
"==": "equal",
|
|
80
|
+
"===": "strictEqual",
|
|
81
|
+
"!=": "notEqual",
|
|
82
|
+
"!==": "notEqual",
|
|
83
|
+
"<": "lessThan",
|
|
84
|
+
">": "greaterThan",
|
|
85
|
+
"<=": "lessThanEq",
|
|
86
|
+
">=": "greaterThanEq",
|
|
87
|
+
"+": "add",
|
|
88
|
+
"-": "sub",
|
|
89
|
+
"*": "mul",
|
|
90
|
+
"/": "div",
|
|
91
|
+
"%": "mod",
|
|
92
|
+
"**": "pow",
|
|
93
|
+
"|": "or",
|
|
94
|
+
"&": "and",
|
|
95
|
+
"^": "xor",
|
|
96
|
+
">>": "shr",
|
|
97
|
+
">>>": "shr",
|
|
98
|
+
"<<": "shl",
|
|
99
|
+
"&&": "land",
|
|
100
|
+
"||": "or",
|
|
101
|
+
};
|
|
102
102
|
//# sourceMappingURL=operators.js.map
|
package/build/operators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../src/operators.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,GAAG;IACH,IAAI;IACJ,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACK,CAAC;AACE,QAAA,yBAAyB,GAAG;IACvC,IAAI;IACJ,KAAK;IACL,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,IAAI;CACI,CAAC;AACE,QAAA,sBAAsB,GAAG;IACpC,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,GAAG;CACK,CAAC;AACE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AAA,WAAW,GAIpB;IACF,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,eAAe;IACrB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;CACF,CAAC"}
|
package/build/types.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.es = void 0;
|
|
27
|
-
exports.es = __importStar(require("
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.es = void 0;
|
|
27
|
+
exports.es = __importStar(require("@babel/types"));
|
|
28
28
|
//# sourceMappingURL=types.js.map
|
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAmC"}
|
package/build/utils.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.camelToDashCase = exports.nodeName = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.camelToDashCase = exports.nodeName = exports.internalPrefix = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The prefix for internal variables inside the compiler output
|
|
6
|
+
*/
|
|
7
|
+
exports.internalPrefix = "&";
|
|
8
|
+
function nodeName(node) {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
10
|
+
const { line, column } = node.loc.start;
|
|
11
|
+
return `${line}:${column}`;
|
|
12
|
+
}
|
|
13
|
+
exports.nodeName = nodeName;
|
|
14
|
+
function camelToDashCase(name) {
|
|
15
|
+
return name.replace(/[A-Z]/g, str => `-${str.toLowerCase()}`);
|
|
16
|
+
}
|
|
17
|
+
exports.camelToDashCase = camelToDashCase;
|
|
13
18
|
//# sourceMappingURL=utils.js.map
|
package/build/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,QAAQ,CAAC,IAAa;IACpC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC,SAAgB,QAAQ,CAAC,IAAa;IACpC,oEAAoE;IACpE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,GAAI,CAAC,KAAK,CAAC;IACzC,OAAO,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC;AAC7B,CAAC;AAJD,4BAIC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAChE,CAAC;AAFD,0CAEC"}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseValue = void 0;
|
|
4
|
-
const instructions_1 = require("../instructions");
|
|
5
|
-
const operators_1 = require("../operators");
|
|
6
|
-
const _1 = require(".");
|
|
7
|
-
class BaseValue extends _1.VoidValue {
|
|
8
|
-
"u-"(scope) {
|
|
9
|
-
const [that, inst] = this.eval(scope);
|
|
10
|
-
const temp = new _1.TempValue(scope);
|
|
11
|
-
return [
|
|
12
|
-
temp,
|
|
13
|
-
[
|
|
14
|
-
...inst,
|
|
15
|
-
new instructions_1.OperationInstruction("sub", temp, new _1.LiteralValue(scope, 0), that),
|
|
16
|
-
],
|
|
17
|
-
];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.BaseValue = BaseValue;
|
|
21
|
-
const operatorMap = {
|
|
22
|
-
"==": "equal",
|
|
23
|
-
"===": "strictEqual",
|
|
24
|
-
"!=": "notEqual",
|
|
25
|
-
"!==": "notEqual",
|
|
26
|
-
"<": "lessThan",
|
|
27
|
-
">": "greaterThan",
|
|
28
|
-
"<=": "lessThanEq",
|
|
29
|
-
">=": "greaterThanEq",
|
|
30
|
-
"+": "add",
|
|
31
|
-
"-": "sub",
|
|
32
|
-
"*": "mul",
|
|
33
|
-
"/": "div",
|
|
34
|
-
"%": "mod",
|
|
35
|
-
"**": "pow",
|
|
36
|
-
"|": "or",
|
|
37
|
-
"&": "and",
|
|
38
|
-
"^": "xor",
|
|
39
|
-
">>": "shr",
|
|
40
|
-
">>>": "shr",
|
|
41
|
-
"<<": "shl",
|
|
42
|
-
"&&": "land",
|
|
43
|
-
"||": "or",
|
|
44
|
-
};
|
|
45
|
-
for (const key in operatorMap) {
|
|
46
|
-
const kind = operatorMap[key];
|
|
47
|
-
BaseValue.prototype[key] = function (scope, value) {
|
|
48
|
-
const [left, leftInst] = this.eval(scope);
|
|
49
|
-
const [right, rightInst] = value.eval(scope);
|
|
50
|
-
const temp = new _1.TempValue(scope);
|
|
51
|
-
return [
|
|
52
|
-
temp,
|
|
53
|
-
[
|
|
54
|
-
...leftInst,
|
|
55
|
-
...rightInst,
|
|
56
|
-
new instructions_1.OperationInstruction(kind, temp, left, right),
|
|
57
|
-
],
|
|
58
|
-
];
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
const unaryOperatorMap = {
|
|
62
|
-
"!": "not",
|
|
63
|
-
"~": "flip",
|
|
64
|
-
};
|
|
65
|
-
for (const key in unaryOperatorMap) {
|
|
66
|
-
const name = unaryOperatorMap[key];
|
|
67
|
-
BaseValue.prototype[key] = function (scope) {
|
|
68
|
-
const [that, inst] = this.eval(scope);
|
|
69
|
-
const temp = new _1.TempValue(scope);
|
|
70
|
-
return [temp, [...inst, new instructions_1.OperationInstruction(name, temp, that)]];
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
const assignmentToBinary = {
|
|
74
|
-
"+=": "+",
|
|
75
|
-
"-=": "-",
|
|
76
|
-
"*=": "*",
|
|
77
|
-
"/=": "/",
|
|
78
|
-
"%=": "%",
|
|
79
|
-
"**=": "**",
|
|
80
|
-
"|=": "|",
|
|
81
|
-
"&=": "&",
|
|
82
|
-
"^=": "^",
|
|
83
|
-
">>=": ">>",
|
|
84
|
-
">>>=": ">>>",
|
|
85
|
-
"<<=": "<<",
|
|
86
|
-
"&&=": "&&",
|
|
87
|
-
"||=": "||",
|
|
88
|
-
};
|
|
89
|
-
for (const op in assignmentToBinary) {
|
|
90
|
-
BaseValue.prototype[op] = function (scope, value) {
|
|
91
|
-
const [opValue, opInst] = this[assignmentToBinary[op]](scope, value);
|
|
92
|
-
const [retValue, retInst] = this["="](scope, opValue);
|
|
93
|
-
return [retValue, [...opInst, ...retInst]];
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
for (const key of operators_1.updateOperators) {
|
|
97
|
-
BaseValue.prototype[key] = function (scope, prefix) {
|
|
98
|
-
let [ret, inst] = this.eval(scope);
|
|
99
|
-
if (!prefix) {
|
|
100
|
-
const temp = new _1.TempValue(scope);
|
|
101
|
-
const [tempValue, tempInst] = temp["="](scope, ret);
|
|
102
|
-
ret = tempValue;
|
|
103
|
-
inst.push(...tempInst);
|
|
104
|
-
}
|
|
105
|
-
const kind = key === "++" ? "+=" : "-=";
|
|
106
|
-
return [
|
|
107
|
-
ret,
|
|
108
|
-
[...inst, ...this[kind](scope, new _1.LiteralValue(scope, 1))[1]],
|
|
109
|
-
];
|
|
110
|
-
};
|
|
111
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseValue = void 0;
|
|
4
|
+
const instructions_1 = require("../instructions");
|
|
5
|
+
const operators_1 = require("../operators");
|
|
6
|
+
const _1 = require(".");
|
|
7
|
+
class BaseValue extends _1.VoidValue {
|
|
8
|
+
"u-"(scope) {
|
|
9
|
+
const [that, inst] = this.eval(scope);
|
|
10
|
+
const temp = new _1.TempValue({ scope });
|
|
11
|
+
return [
|
|
12
|
+
temp,
|
|
13
|
+
[
|
|
14
|
+
...inst,
|
|
15
|
+
new instructions_1.OperationInstruction("sub", temp, new _1.LiteralValue(scope, 0), that),
|
|
16
|
+
],
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.BaseValue = BaseValue;
|
|
21
|
+
const operatorMap = {
|
|
22
|
+
"==": "equal",
|
|
23
|
+
"===": "strictEqual",
|
|
24
|
+
"!=": "notEqual",
|
|
25
|
+
"!==": "notEqual",
|
|
26
|
+
"<": "lessThan",
|
|
27
|
+
">": "greaterThan",
|
|
28
|
+
"<=": "lessThanEq",
|
|
29
|
+
">=": "greaterThanEq",
|
|
30
|
+
"+": "add",
|
|
31
|
+
"-": "sub",
|
|
32
|
+
"*": "mul",
|
|
33
|
+
"/": "div",
|
|
34
|
+
"%": "mod",
|
|
35
|
+
"**": "pow",
|
|
36
|
+
"|": "or",
|
|
37
|
+
"&": "and",
|
|
38
|
+
"^": "xor",
|
|
39
|
+
">>": "shr",
|
|
40
|
+
">>>": "shr",
|
|
41
|
+
"<<": "shl",
|
|
42
|
+
"&&": "land",
|
|
43
|
+
"||": "or",
|
|
44
|
+
};
|
|
45
|
+
for (const key in operatorMap) {
|
|
46
|
+
const kind = operatorMap[key];
|
|
47
|
+
BaseValue.prototype[key] = function (scope, value) {
|
|
48
|
+
const [left, leftInst] = this.eval(scope);
|
|
49
|
+
const [right, rightInst] = value.eval(scope);
|
|
50
|
+
const temp = new _1.TempValue({ scope });
|
|
51
|
+
return [
|
|
52
|
+
temp,
|
|
53
|
+
[
|
|
54
|
+
...leftInst,
|
|
55
|
+
...rightInst,
|
|
56
|
+
new instructions_1.OperationInstruction(kind, temp, left, right),
|
|
57
|
+
],
|
|
58
|
+
];
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const unaryOperatorMap = {
|
|
62
|
+
"!": "not",
|
|
63
|
+
"~": "flip",
|
|
64
|
+
};
|
|
65
|
+
for (const key in unaryOperatorMap) {
|
|
66
|
+
const name = unaryOperatorMap[key];
|
|
67
|
+
BaseValue.prototype[key] = function (scope) {
|
|
68
|
+
const [that, inst] = this.eval(scope);
|
|
69
|
+
const temp = new _1.TempValue({ scope });
|
|
70
|
+
return [temp, [...inst, new instructions_1.OperationInstruction(name, temp, that, null)]];
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const assignmentToBinary = {
|
|
74
|
+
"+=": "+",
|
|
75
|
+
"-=": "-",
|
|
76
|
+
"*=": "*",
|
|
77
|
+
"/=": "/",
|
|
78
|
+
"%=": "%",
|
|
79
|
+
"**=": "**",
|
|
80
|
+
"|=": "|",
|
|
81
|
+
"&=": "&",
|
|
82
|
+
"^=": "^",
|
|
83
|
+
">>=": ">>",
|
|
84
|
+
">>>=": ">>>",
|
|
85
|
+
"<<=": "<<",
|
|
86
|
+
"&&=": "&&",
|
|
87
|
+
"||=": "||",
|
|
88
|
+
};
|
|
89
|
+
for (const op in assignmentToBinary) {
|
|
90
|
+
BaseValue.prototype[op] = function (scope, value) {
|
|
91
|
+
const [opValue, opInst] = this[assignmentToBinary[op]](scope, value);
|
|
92
|
+
const [retValue, retInst] = this["="](scope, opValue);
|
|
93
|
+
return [retValue, [...opInst, ...retInst]];
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
for (const key of operators_1.updateOperators) {
|
|
97
|
+
BaseValue.prototype[key] = function (scope, prefix) {
|
|
98
|
+
let [ret, inst] = this.eval(scope);
|
|
99
|
+
if (!prefix) {
|
|
100
|
+
const temp = new _1.TempValue({ scope });
|
|
101
|
+
const [tempValue, tempInst] = temp["="](scope, ret);
|
|
102
|
+
ret = tempValue;
|
|
103
|
+
inst.push(...tempInst);
|
|
104
|
+
}
|
|
105
|
+
const kind = key === "++" ? "+=" : "-=";
|
|
106
|
+
return [
|
|
107
|
+
ret,
|
|
108
|
+
[...inst, ...this[kind](scope, new _1.LiteralValue(scope, 1))[1]],
|
|
109
|
+
];
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
112
|
//# sourceMappingURL=BaseValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseValue.js","sourceRoot":"","sources":["../../src/values/BaseValue.ts"],"names":[],"mappings":";;;AAAA,kDAAuD;AACvD,4CAMsB;AAEtB,wBAAuD;AAEvD,MAAa,SAAU,SAAQ,YAAS;IACtC,IAAI,CAAC,KAAa;QAChB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,IAAI,YAAS,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseValue.js","sourceRoot":"","sources":["../../src/values/BaseValue.ts"],"names":[],"mappings":";;;AAAA,kDAAuD;AACvD,4CAMsB;AAEtB,wBAAuD;AAEvD,MAAa,SAAU,SAAQ,YAAS;IACtC,IAAI,CAAC,KAAa;QAChB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,IAAI,YAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACtC,OAAO;YACL,IAAI;YACJ;gBACE,GAAG,IAAI;gBACP,IAAI,mCAAoB,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,eAAY,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC;aACxE;SACF,CAAC;IACJ,CAAC;CACF;AAZD,8BAYC;AAED,MAAM,WAAW,GAGb;IACF,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,eAAe;IACrB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IAC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