mlogjs 0.1.10 → 0.2.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/LICENSE +21 -21
- package/README.md +68 -18
- package/build/Compiler.d.ts +18 -18
- package/build/Compiler.js +99 -92
- package/build/Compiler.js.map +1 -1
- package/build/Scope.d.ts +26 -26
- package/build/Scope.js +60 -60
- package/build/Scope.js.map +1 -1
- package/build/bin.d.ts +2 -2
- package/build/bin.js +59 -33
- package/build/bin.js.map +1 -1
- package/build/handlers/BlockStatement.d.ts +2 -2
- package/build/handlers/BlockStatement.js +13 -13
- package/build/handlers/BlockStatement.js.map +1 -1
- package/build/handlers/CallExpression.d.ts +3 -3
- package/build/handlers/CallExpression.js +19 -19
- package/build/handlers/CallExpression.js.map +1 -1
- package/build/handlers/ForStatement.d.ts +2 -2
- package/build/handlers/ForStatement.js +31 -31
- package/build/handlers/ForStatement.js.map +1 -1
- package/build/handlers/Function.d.ts +4 -4
- package/build/handlers/Function.js +35 -32
- package/build/handlers/Function.js.map +1 -1
- package/build/handlers/Identifier.d.ts +2 -2
- package/build/handlers/Identifier.js +7 -7
- package/build/handlers/Identifier.js.map +1 -1
- package/build/handlers/IfStatement.d.ts +2 -2
- package/build/handlers/IfStatement.js +24 -24
- package/build/handlers/IfStatement.js.map +1 -1
- package/build/handlers/Literal.d.ts +2 -2
- package/build/handlers/Literal.js +17 -15
- package/build/handlers/Literal.js.map +1 -1
- package/build/handlers/Object.d.ts +4 -4
- package/build/handlers/Object.js +43 -43
- package/build/handlers/Object.js.map +1 -1
- package/build/handlers/OperationExpressions.d.ts +7 -7
- package/build/handlers/OperationExpressions.js +32 -31
- package/build/handlers/OperationExpressions.js.map +1 -1
- package/build/handlers/Program.d.ts +2 -2
- package/build/handlers/Program.js +8 -8
- package/build/handlers/Program.js.map +1 -1
- package/build/handlers/Statements.d.ts +5 -5
- package/build/handlers/Statements.js +29 -27
- package/build/handlers/Statements.js.map +1 -1
- package/build/handlers/TemplateExpression.d.ts +2 -2
- package/build/handlers/TemplateExpression.js +17 -17
- package/build/handlers/TemplateExpression.js.map +1 -1
- package/build/handlers/VariableDeclaration.d.ts +3 -3
- package/build/handlers/VariableDeclaration.js +55 -31
- package/build/handlers/VariableDeclaration.js.map +1 -1
- package/build/handlers/WhileStatement.d.ts +2 -2
- package/build/handlers/WhileStatement.js +22 -22
- package/build/handlers/WhileStatement.js.map +1 -1
- package/build/handlers/index.d.ts +14 -14
- package/build/handlers/index.js +30 -26
- package/build/handlers/index.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +7 -7
- package/build/index.js.map +1 -1
- package/build/initScope.d.ts +2 -0
- package/build/initScope.js +40 -0
- package/build/initScope.js.map +1 -0
- package/build/instructions/AddressResolver.d.ts +12 -12
- package/build/instructions/AddressResolver.js +30 -31
- package/build/instructions/AddressResolver.js.map +1 -1
- package/build/instructions/ControlInstructions.d.ts +11 -11
- package/build/instructions/ControlInstructions.js +22 -22
- package/build/instructions/ControlInstructions.js.map +1 -1
- package/build/instructions/EndInstruction.d.ts +4 -4
- package/build/instructions/EndInstruction.js +10 -10
- package/build/instructions/EndInstruction.js.map +1 -1
- package/build/instructions/InstructionBase.d.ts +10 -10
- package/build/instructions/InstructionBase.js +20 -20
- package/build/instructions/InstructionBase.js.map +1 -1
- package/build/instructions/JumpInstruction.d.ts +15 -15
- package/build/instructions/JumpInstruction.js +21 -21
- package/build/instructions/JumpInstruction.js.map +1 -1
- package/build/instructions/OperationInstruction.d.ts +5 -5
- package/build/instructions/OperationInstruction.js +10 -10
- package/build/instructions/OperationInstruction.js.map +1 -1
- package/build/instructions/SetCounterInstruction.d.ts +5 -5
- package/build/instructions/SetCounterInstruction.js +10 -10
- package/build/instructions/SetCounterInstruction.js.map +1 -1
- package/build/instructions/SetInstruction.d.ts +5 -5
- package/build/instructions/SetInstruction.js +10 -10
- package/build/instructions/SetInstruction.js.map +1 -1
- package/build/instructions/ZeroSpaceInstruction.d.ts +4 -4
- package/build/instructions/ZeroSpaceInstruction.js +10 -10
- package/build/instructions/ZeroSpaceInstruction.js.map +1 -1
- package/build/instructions/index.d.ts +9 -9
- package/build/instructions/index.js +25 -21
- package/build/instructions/index.js.map +1 -1
- package/build/macros/Building.d.ts +11 -0
- package/build/macros/Building.js +81 -0
- package/build/macros/Building.js.map +1 -0
- package/build/macros/Function.d.ts +12 -12
- package/build/macros/Function.js +19 -19
- package/build/macros/Function.js.map +1 -1
- package/build/macros/Math.d.ts +5 -5
- package/build/macros/Math.js +56 -56
- package/build/macros/Math.js.map +1 -1
- package/build/macros/{Blocks.d.ts → Memory.d.ts} +5 -5
- package/build/macros/Memory.js +61 -0
- package/build/macros/Memory.js.map +1 -0
- package/build/macros/Namespace.d.ts +21 -0
- package/build/macros/Namespace.js +98 -0
- package/build/macros/Namespace.js.map +1 -0
- package/build/macros/Other.d.ts +5 -8
- package/build/macros/Other.js +19 -28
- package/build/macros/Other.js.map +1 -1
- package/build/macros/{Draw.d.ts → RawValue.d.ts} +5 -5
- package/build/macros/RawValue.js +16 -0
- package/build/macros/RawValue.js.map +1 -0
- package/build/macros/commands/Control.d.ts +5 -0
- package/build/macros/commands/Control.js +25 -0
- package/build/macros/commands/Control.js.map +1 -0
- package/build/macros/commands/Draw.d.ts +5 -0
- package/build/macros/{Draw.js → commands/Draw.js} +38 -33
- package/build/macros/commands/Draw.js.map +1 -0
- package/build/macros/commands/DrawFlush.d.ts +5 -0
- package/build/macros/commands/DrawFlush.js +17 -0
- package/build/macros/commands/DrawFlush.js.map +1 -0
- package/build/macros/commands/GetLink.d.ts +5 -0
- package/build/macros/commands/GetLink.js +21 -0
- package/build/macros/commands/GetLink.js.map +1 -0
- package/build/macros/commands/Lookup.d.ts +5 -0
- package/build/macros/commands/Lookup.js +24 -0
- package/build/macros/commands/Lookup.js.map +1 -0
- package/build/macros/commands/Print.d.ts +5 -0
- package/build/macros/commands/Print.js +14 -0
- package/build/macros/commands/Print.js.map +1 -0
- package/build/macros/commands/PrintFlush.d.ts +5 -0
- package/build/macros/commands/PrintFlush.js +17 -0
- package/build/macros/commands/PrintFlush.js.map +1 -0
- package/build/macros/commands/Radar.d.ts +7 -0
- package/build/macros/commands/Radar.js +61 -0
- package/build/macros/commands/Radar.js.map +1 -0
- package/build/macros/commands/Sensor.d.ts +5 -0
- package/build/macros/commands/Sensor.js +20 -0
- package/build/macros/commands/Sensor.js.map +1 -0
- package/build/macros/commands/UnitBind.d.ts +5 -0
- package/build/macros/commands/UnitBind.js +17 -0
- package/build/macros/commands/UnitBind.js.map +1 -0
- package/build/macros/commands/UnitControl.d.ts +5 -0
- package/build/macros/commands/UnitControl.js +68 -0
- package/build/macros/commands/UnitControl.js.map +1 -0
- package/build/macros/commands/UnitLocate.d.ts +5 -0
- package/build/macros/commands/UnitLocate.js +55 -0
- package/build/macros/commands/UnitLocate.js.map +1 -0
- package/build/macros/commands/UnitRadar.d.ts +5 -0
- package/build/macros/commands/UnitRadar.js +41 -0
- package/build/macros/commands/UnitRadar.js.map +1 -0
- package/build/macros/commands/Wait.d.ts +5 -0
- package/build/macros/commands/Wait.js +18 -0
- package/build/macros/commands/Wait.js.map +1 -0
- package/build/macros/commands/index.d.ts +14 -0
- package/build/macros/commands/index.js +33 -0
- package/build/macros/commands/index.js.map +1 -0
- package/build/macros/index.d.ts +7 -5
- package/build/macros/index.js +39 -17
- package/build/macros/index.js.map +1 -1
- package/build/operators.d.ts +25 -22
- package/build/operators.js +101 -38
- package/build/operators.js.map +1 -1
- package/build/types.d.ts +49 -49
- package/build/types.js +27 -23
- package/build/types.js.map +1 -1
- package/build/utils.d.ts +3 -2
- package/build/utils.js +12 -8
- package/build/utils.js.map +1 -1
- package/build/values/BaseValue.d.ts +5 -5
- package/build/values/BaseValue.js +111 -101
- package/build/values/BaseValue.js.map +1 -1
- package/build/values/FunctionValue.d.ts +34 -34
- package/build/values/FunctionValue.js +103 -100
- package/build/values/FunctionValue.js.map +1 -1
- package/build/values/LiteralValue.d.ts +12 -12
- package/build/values/LiteralValue.js +87 -88
- package/build/values/LiteralValue.js.map +1 -1
- package/build/values/ObjectValue.d.ts +17 -17
- package/build/values/ObjectValue.js +49 -49
- package/build/values/ObjectValue.js.map +1 -1
- package/build/values/StoreValue.d.ts +11 -11
- package/build/values/StoreValue.js +30 -30
- package/build/values/StoreValue.js.map +1 -1
- package/build/values/TempValue.d.ts +12 -12
- package/build/values/TempValue.js +66 -52
- package/build/values/TempValue.js.map +1 -1
- package/build/values/VoidValue.d.ts +11 -11
- package/build/values/VoidValue.js +30 -30
- package/build/values/VoidValue.js.map +1 -1
- package/build/values/index.d.ts +6 -6
- package/build/values/index.js +22 -18
- package/build/values/index.js.map +1 -1
- package/dist/mlogjs.es.js +6366 -0
- package/dist/mlogjs.umd.js +8 -0
- package/lib/commands.d.ts +326 -0
- package/lib/eslib/index.d.ts +3 -0
- package/lib/eslib/lib.d.ts +9 -0
- package/lib/eslib/lib.es2015.collection.d.ts +89 -0
- package/lib/eslib/lib.es2015.core.d.ts +16 -0
- package/lib/eslib/lib.es2015.d.ts +30 -0
- package/lib/eslib/lib.es2015.generator.d.ts +79 -0
- package/lib/eslib/lib.es2015.iterable.d.ts +70 -0
- package/lib/eslib/lib.es5.d.ts +295 -0
- package/lib/eslib/lib.es6.d.ts +18 -0
- package/lib/globals.d.ts +328 -0
- package/lib/helpers.d.ts +23 -0
- package/lib/index.d.ts +7 -0
- package/lib/kinds.d.ts +36 -0
- package/lib/memory.d.ts +17 -0
- package/lib/traits.d.ts +121 -0
- package/lib/util.d.ts +32 -0
- package/package.json +73 -37
- package/.gitattributes +0 -2
- package/build/macros/Blocks.js +0 -134
- package/build/macros/Blocks.js.map +0 -1
- package/build/macros/Draw.js.map +0 -1
- package/build/macros/TypeFactory.d.ts +0 -8
- package/build/macros/TypeFactory.js +0 -22
- package/build/macros/TypeFactory.js.map +0 -1
- package/build/scopes/FunctionScope.d.ts +0 -5
- package/build/scopes/FunctionScope.js +0 -13
- package/build/scopes/FunctionScope.js.map +0 -1
- package/build/scopes/LoopScope.d.ts +0 -5
- package/build/scopes/LoopScope.js +0 -13
- package/build/scopes/LoopScope.js.map +0 -1
- package/build/scopes/Scope.d.ts +0 -36
- package/build/scopes/Scope.js +0 -93
- package/build/scopes/Scope.js.map +0 -1
- package/build/scopes/index.d.ts +0 -3
- package/build/scopes/index.js +0 -16
- package/build/scopes/index.js.map +0 -1
- package/dist/bundle.js +0 -553
- package/docs/.nojekyll +0 -0
- package/docs/README.md +0 -17
- package/docs/_coverpage.md +0 -8
- package/docs/_sidebar.md +0 -3
- package/docs/data-types.md +0 -56
- package/docs/getting-started.md +0 -19
- package/docs/index.html +0 -41
- package/docs/mlogjs.png +0 -0
- package/mlogjs.d.ts +0 -72
- package/tsconfig.json +0 -22
- package/webpack.config.js +0 -22
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initScope = void 0;
|
|
4
|
+
const macros_1 = require("./macros");
|
|
5
|
+
const Namespace_1 = require("./macros/Namespace");
|
|
6
|
+
const RawValue_1 = require("./macros/RawValue");
|
|
7
|
+
function initScope(scope) {
|
|
8
|
+
// namespaces
|
|
9
|
+
scope.hardSet("ControlKind", new macros_1.NamespaceMacro(scope));
|
|
10
|
+
scope.hardSet("Vars", new macros_1.VarsNamespace(scope));
|
|
11
|
+
scope.hardSet("Items", new macros_1.NamespaceMacro(scope, { changeCasing: true }));
|
|
12
|
+
scope.hardSet("Liquids", new macros_1.NamespaceMacro(scope));
|
|
13
|
+
scope.hardSet("Units", new macros_1.NamespaceMacro(scope));
|
|
14
|
+
scope.hardSet("LAccess", new macros_1.NamespaceMacro(scope));
|
|
15
|
+
scope.hardSet("UnitCommands", new Namespace_1.UCommandsNamespace(scope));
|
|
16
|
+
scope.hardSet("Blocks", new macros_1.NamespaceMacro(scope, { changeCasing: true }));
|
|
17
|
+
// helper methods
|
|
18
|
+
scope.hardSet("getBuilding", new macros_1.BuildingBuilder(scope));
|
|
19
|
+
scope.hardSet("getVar", new RawValue_1.RawValueMacro(scope));
|
|
20
|
+
scope.hardSet("concat", new macros_1.Concat(scope));
|
|
21
|
+
scope.hardSet("Math", new macros_1.MlogMath(scope));
|
|
22
|
+
scope.hardSet("Memory", new macros_1.MemoryBuilder(scope));
|
|
23
|
+
// commands
|
|
24
|
+
scope.hardSet("draw", new macros_1.commands.Draw(scope));
|
|
25
|
+
scope.hardSet("print", new macros_1.commands.Print(scope));
|
|
26
|
+
scope.hardSet("printFlush", new macros_1.commands.PrintFlush(scope));
|
|
27
|
+
scope.hardSet("drawFlush", new macros_1.commands.DrawFlush(scope));
|
|
28
|
+
scope.hardSet("getLink", new macros_1.commands.GetLink(scope));
|
|
29
|
+
scope.hardSet("control", new macros_1.commands.Control(scope));
|
|
30
|
+
scope.hardSet("radar", new macros_1.commands.Radar(scope));
|
|
31
|
+
scope.hardSet("sensor", new macros_1.commands.Sensor(scope));
|
|
32
|
+
scope.hardSet("wait", new macros_1.commands.Wait(scope));
|
|
33
|
+
scope.hardSet("lookup", new macros_1.commands.Lookup(scope));
|
|
34
|
+
scope.hardSet("unitBind", new macros_1.commands.UnitBind(scope));
|
|
35
|
+
scope.hardSet("unitControl", new macros_1.commands.UnitControl(scope));
|
|
36
|
+
scope.hardSet("unitRadar", new macros_1.commands.UnitRadar(scope));
|
|
37
|
+
scope.hardSet("unitLocate", new macros_1.commands.UnitLocate(scope));
|
|
38
|
+
}
|
|
39
|
+
exports.initScope = initScope;
|
|
40
|
+
//# sourceMappingURL=initScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initScope.js","sourceRoot":"","sources":["../src/initScope.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { InstructionBase } from ".";
|
|
2
|
-
import {
|
|
3
|
-
export declare class AddressResolver extends InstructionBase {
|
|
4
|
-
get hidden(): boolean;
|
|
5
|
-
set hidden(value: boolean);
|
|
6
|
-
bonds: IBindableValue[];
|
|
7
|
-
constructor(...bonds: IBindableValue[]);
|
|
8
|
-
resolve(i: number): void;
|
|
9
|
-
bind(bond: IBindableValue): void;
|
|
10
|
-
bindBreak(scope: IScope): this;
|
|
11
|
-
bindContinue(scope: IScope): this;
|
|
12
|
-
}
|
|
1
|
+
import { InstructionBase } from ".";
|
|
2
|
+
import { IBindableValue, IScope } from "../types";
|
|
3
|
+
export declare class AddressResolver extends InstructionBase {
|
|
4
|
+
get hidden(): boolean;
|
|
5
|
+
set hidden(value: boolean);
|
|
6
|
+
bonds: IBindableValue[];
|
|
7
|
+
constructor(...bonds: IBindableValue[]);
|
|
8
|
+
resolve(i: number): void;
|
|
9
|
+
bind(bond: IBindableValue): void;
|
|
10
|
+
bindBreak(scope: IScope): this;
|
|
11
|
+
bindContinue(scope: IScope): this;
|
|
12
|
+
}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddressResolver = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
class AddressResolver extends _1.InstructionBase {
|
|
6
|
-
constructor(...bonds) {
|
|
7
|
-
super();
|
|
8
|
-
this.bonds = bonds;
|
|
9
|
-
}
|
|
10
|
-
get hidden() {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
set hidden(value) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.AddressResolver = AddressResolver;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressResolver = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
class AddressResolver extends _1.InstructionBase {
|
|
6
|
+
constructor(...bonds) {
|
|
7
|
+
super();
|
|
8
|
+
this.bonds = bonds;
|
|
9
|
+
}
|
|
10
|
+
get hidden() {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
set hidden(value) { }
|
|
14
|
+
resolve(i) {
|
|
15
|
+
for (const literal of this.bonds)
|
|
16
|
+
literal.data = i;
|
|
17
|
+
}
|
|
18
|
+
bind(bond) {
|
|
19
|
+
this.bonds.push(bond);
|
|
20
|
+
}
|
|
21
|
+
bindBreak(scope) {
|
|
22
|
+
scope.break = this;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
bindContinue(scope) {
|
|
26
|
+
scope.continue = this;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AddressResolver = AddressResolver;
|
|
32
31
|
//# sourceMappingURL=AddressResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressResolver.js","sourceRoot":"","sources":["../../src/instructions/AddressResolver.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,eAAgB,SAAQ,kBAAe;
|
|
1
|
+
{"version":3,"file":"AddressResolver.js","sourceRoot":"","sources":["../../src/instructions/AddressResolver.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,eAAgB,SAAQ,kBAAe;IAMlD,YAAY,GAAG,KAAuB;QACpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IARD,IAAW,MAAM;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAW,MAAM,CAAC,KAAK,IAAG,CAAC;IAM3B,OAAO,CAAC,CAAS;QACf,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;IACrD,CAAC;IACD,IAAI,CAAC,IAAoB;QACvB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IACD,SAAS,CAAC,KAAa;QACrB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,YAAY,CAAC,KAAa;QACxB,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAxBD,0CAwBC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IBindableValue } from "../types";
|
|
2
|
-
import { JumpInstruction } from "./JumpInstruction";
|
|
3
|
-
export declare class BreakInstruction extends JumpInstruction {
|
|
4
|
-
constructor(address: IBindableValue);
|
|
5
|
-
}
|
|
6
|
-
export declare class ContinueInstruction extends JumpInstruction {
|
|
7
|
-
constructor(address: IBindableValue);
|
|
8
|
-
}
|
|
9
|
-
export declare class ReturnInstruction extends JumpInstruction {
|
|
10
|
-
constructor(address: IBindableValue);
|
|
11
|
-
}
|
|
1
|
+
import { IBindableValue } from "../types";
|
|
2
|
+
import { JumpInstruction } from "./JumpInstruction";
|
|
3
|
+
export declare class BreakInstruction extends JumpInstruction {
|
|
4
|
+
constructor(address: IBindableValue);
|
|
5
|
+
}
|
|
6
|
+
export declare class ContinueInstruction extends JumpInstruction {
|
|
7
|
+
constructor(address: IBindableValue);
|
|
8
|
+
}
|
|
9
|
+
export declare class ReturnInstruction extends JumpInstruction {
|
|
10
|
+
constructor(address: IBindableValue);
|
|
11
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReturnInstruction = exports.ContinueInstruction = exports.BreakInstruction = void 0;
|
|
4
|
-
const JumpInstruction_1 = require("./JumpInstruction");
|
|
5
|
-
class BreakInstruction extends JumpInstruction_1.JumpInstruction {
|
|
6
|
-
constructor(address) {
|
|
7
|
-
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.BreakInstruction = BreakInstruction;
|
|
11
|
-
class ContinueInstruction extends JumpInstruction_1.JumpInstruction {
|
|
12
|
-
constructor(address) {
|
|
13
|
-
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ContinueInstruction = ContinueInstruction;
|
|
17
|
-
class ReturnInstruction extends JumpInstruction_1.JumpInstruction {
|
|
18
|
-
constructor(address) {
|
|
19
|
-
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.ReturnInstruction = ReturnInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReturnInstruction = exports.ContinueInstruction = exports.BreakInstruction = void 0;
|
|
4
|
+
const JumpInstruction_1 = require("./JumpInstruction");
|
|
5
|
+
class BreakInstruction extends JumpInstruction_1.JumpInstruction {
|
|
6
|
+
constructor(address) {
|
|
7
|
+
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.BreakInstruction = BreakInstruction;
|
|
11
|
+
class ContinueInstruction extends JumpInstruction_1.JumpInstruction {
|
|
12
|
+
constructor(address) {
|
|
13
|
+
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ContinueInstruction = ContinueInstruction;
|
|
17
|
+
class ReturnInstruction extends JumpInstruction_1.JumpInstruction {
|
|
18
|
+
constructor(address) {
|
|
19
|
+
super(address, JumpInstruction_1.EJumpKind.Always);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ReturnInstruction = ReturnInstruction;
|
|
23
23
|
//# sourceMappingURL=ControlInstructions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlInstructions.js","sourceRoot":"","sources":["../../src/instructions/ControlInstructions.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,MAAa,gBAAiB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"ControlInstructions.js","sourceRoot":"","sources":["../../src/instructions/ControlInstructions.ts"],"names":[],"mappings":";;;AACA,uDAA+D;AAE/D,MAAa,gBAAiB,SAAQ,iCAAe;IACnD,YAAY,OAAuB;QACjC,KAAK,CAAC,OAAO,EAAE,2BAAS,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF;AAJD,4CAIC;AAED,MAAa,mBAAoB,SAAQ,iCAAe;IACtD,YAAY,OAAuB;QACjC,KAAK,CAAC,OAAO,EAAE,2BAAS,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF;AAJD,kDAIC;AAED,MAAa,iBAAkB,SAAQ,iCAAe;IACpD,YAAY,OAAuB;QACjC,KAAK,CAAC,OAAO,EAAE,2BAAS,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CACF;AAJD,8CAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstructionBase } from "./InstructionBase";
|
|
2
|
-
export declare class EndInstruction extends InstructionBase {
|
|
3
|
-
constructor();
|
|
4
|
-
}
|
|
1
|
+
import { InstructionBase } from "./InstructionBase";
|
|
2
|
+
export declare class EndInstruction extends InstructionBase {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EndInstruction = void 0;
|
|
4
|
-
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
-
class EndInstruction extends InstructionBase_1.InstructionBase {
|
|
6
|
-
constructor() {
|
|
7
|
-
super("end");
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.EndInstruction = EndInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndInstruction = void 0;
|
|
4
|
+
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
+
class EndInstruction extends InstructionBase_1.InstructionBase {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("end");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.EndInstruction = EndInstruction;
|
|
11
11
|
//# sourceMappingURL=EndInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndInstruction.js","sourceRoot":"","sources":["../../src/instructions/EndInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,MAAa,cAAe,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"EndInstruction.js","sourceRoot":"","sources":["../../src/instructions/EndInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,MAAa,cAAe,SAAQ,iCAAe;IACjD;QACE,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IInstruction, IValue } from "../types";
|
|
2
|
-
export declare class InstructionBase implements IInstruction {
|
|
3
|
-
private _hidden;
|
|
4
|
-
get hidden(): boolean;
|
|
5
|
-
set hidden(value: boolean);
|
|
6
|
-
args: (string | IValue)[];
|
|
7
|
-
constructor(...args: (string | IValue)[]);
|
|
8
|
-
resolve(i: number): void;
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
1
|
+
import { IInstruction, IValue } from "../types";
|
|
2
|
+
export declare class InstructionBase implements IInstruction {
|
|
3
|
+
private _hidden;
|
|
4
|
+
get hidden(): boolean;
|
|
5
|
+
set hidden(value: boolean);
|
|
6
|
+
args: (string | IValue)[];
|
|
7
|
+
constructor(...args: (string | IValue)[]);
|
|
8
|
+
resolve(i: number): void;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InstructionBase = void 0;
|
|
4
|
-
class InstructionBase {
|
|
5
|
-
constructor(...args) {
|
|
6
|
-
this._hidden = false;
|
|
7
|
-
this.args = args;
|
|
8
|
-
}
|
|
9
|
-
get hidden() {
|
|
10
|
-
return this._hidden;
|
|
11
|
-
}
|
|
12
|
-
set hidden(value) {
|
|
13
|
-
this._hidden = value;
|
|
14
|
-
}
|
|
15
|
-
resolve(i) { }
|
|
16
|
-
toString() {
|
|
17
|
-
return this.args.filter(arg => arg).join(" ");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.InstructionBase = InstructionBase;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InstructionBase = void 0;
|
|
4
|
+
class InstructionBase {
|
|
5
|
+
constructor(...args) {
|
|
6
|
+
this._hidden = false;
|
|
7
|
+
this.args = args;
|
|
8
|
+
}
|
|
9
|
+
get hidden() {
|
|
10
|
+
return this._hidden;
|
|
11
|
+
}
|
|
12
|
+
set hidden(value) {
|
|
13
|
+
this._hidden = value;
|
|
14
|
+
}
|
|
15
|
+
resolve(i) { }
|
|
16
|
+
toString() {
|
|
17
|
+
return this.args.filter(arg => arg).join(" ");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InstructionBase = InstructionBase;
|
|
21
21
|
//# sourceMappingURL=InstructionBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstructionBase.js","sourceRoot":"","sources":["../../src/instructions/InstructionBase.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"InstructionBase.js","sourceRoot":"","sources":["../../src/instructions/InstructionBase.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAS1B,YAAY,GAAG,IAAyB;QARhC,YAAO,GAAG,KAAK,CAAC;QAStB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IATD,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,IAAW,MAAM,CAAC,KAAK;QACrB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAKD,OAAO,CAAC,CAAS,IAAG,CAAC;IACrB,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CACF;AAhBD,0CAgBC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IBindableValue, IValue } from "../types";
|
|
2
|
-
import { InstructionBase } from "./InstructionBase";
|
|
3
|
-
export declare enum EJumpKind {
|
|
4
|
-
Equal = "equal",
|
|
5
|
-
NotEqual = "notEqual",
|
|
6
|
-
LessThan = "lessThan",
|
|
7
|
-
LessThanEq = "lessThanEq",
|
|
8
|
-
GreaterThan = "greaterThan",
|
|
9
|
-
GreaterThanEq = "greaterThanEq",
|
|
10
|
-
StrictEqual = "strictEqual",
|
|
11
|
-
Always = "always"
|
|
12
|
-
}
|
|
13
|
-
export declare class JumpInstruction extends InstructionBase {
|
|
14
|
-
constructor(address: IBindableValue, kind: EJumpKind, left?: IValue, right?: IValue);
|
|
15
|
-
}
|
|
1
|
+
import { IBindableValue, IValue } from "../types";
|
|
2
|
+
import { InstructionBase } from "./InstructionBase";
|
|
3
|
+
export declare enum EJumpKind {
|
|
4
|
+
Equal = "equal",
|
|
5
|
+
NotEqual = "notEqual",
|
|
6
|
+
LessThan = "lessThan",
|
|
7
|
+
LessThanEq = "lessThanEq",
|
|
8
|
+
GreaterThan = "greaterThan",
|
|
9
|
+
GreaterThanEq = "greaterThanEq",
|
|
10
|
+
StrictEqual = "strictEqual",
|
|
11
|
+
Always = "always"
|
|
12
|
+
}
|
|
13
|
+
export declare class JumpInstruction extends InstructionBase {
|
|
14
|
+
constructor(address: IBindableValue, kind: EJumpKind, left?: IValue, right?: IValue);
|
|
15
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JumpInstruction = exports.EJumpKind = void 0;
|
|
4
|
-
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
-
var EJumpKind;
|
|
6
|
-
(function (EJumpKind) {
|
|
7
|
-
EJumpKind["Equal"] = "equal";
|
|
8
|
-
EJumpKind["NotEqual"] = "notEqual";
|
|
9
|
-
EJumpKind["LessThan"] = "lessThan";
|
|
10
|
-
EJumpKind["LessThanEq"] = "lessThanEq";
|
|
11
|
-
EJumpKind["GreaterThan"] = "greaterThan";
|
|
12
|
-
EJumpKind["GreaterThanEq"] = "greaterThanEq";
|
|
13
|
-
EJumpKind["StrictEqual"] = "strictEqual";
|
|
14
|
-
EJumpKind["Always"] = "always";
|
|
15
|
-
})(EJumpKind = exports.EJumpKind || (exports.EJumpKind = {}));
|
|
16
|
-
class JumpInstruction extends InstructionBase_1.InstructionBase {
|
|
17
|
-
constructor(address, kind, left, right) {
|
|
18
|
-
super("jump", address, kind, left, right);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.JumpInstruction = JumpInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JumpInstruction = exports.EJumpKind = void 0;
|
|
4
|
+
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
+
var EJumpKind;
|
|
6
|
+
(function (EJumpKind) {
|
|
7
|
+
EJumpKind["Equal"] = "equal";
|
|
8
|
+
EJumpKind["NotEqual"] = "notEqual";
|
|
9
|
+
EJumpKind["LessThan"] = "lessThan";
|
|
10
|
+
EJumpKind["LessThanEq"] = "lessThanEq";
|
|
11
|
+
EJumpKind["GreaterThan"] = "greaterThan";
|
|
12
|
+
EJumpKind["GreaterThanEq"] = "greaterThanEq";
|
|
13
|
+
EJumpKind["StrictEqual"] = "strictEqual";
|
|
14
|
+
EJumpKind["Always"] = "always";
|
|
15
|
+
})(EJumpKind = exports.EJumpKind || (exports.EJumpKind = {}));
|
|
16
|
+
class JumpInstruction extends InstructionBase_1.InstructionBase {
|
|
17
|
+
constructor(address, kind, left, right) {
|
|
18
|
+
super("jump", address, kind, left, right);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.JumpInstruction = JumpInstruction;
|
|
22
22
|
//# sourceMappingURL=JumpInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JumpInstruction.js","sourceRoot":"","sources":["../../src/instructions/JumpInstruction.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"JumpInstruction.js","sourceRoot":"","sources":["../../src/instructions/JumpInstruction.ts"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,wCAA2B,CAAA;IAC3B,4CAA+B,CAAA;IAC/B,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;AACnB,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB;AAED,MAAa,eAAgB,SAAQ,iCAAe;IAClD,YACE,OAAuB,EACvB,IAAe,EACf,IAAa,EACb,KAAc;QAEd,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;CACF;AATD,0CASC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InstructionBase } from ".";
|
|
2
|
-
import { IValue } from "../types";
|
|
3
|
-
export declare class OperationInstruction extends InstructionBase {
|
|
4
|
-
constructor(kind: string, temp: IValue, left: IValue, right?: IValue);
|
|
5
|
-
}
|
|
1
|
+
import { InstructionBase } from ".";
|
|
2
|
+
import { IValue } from "../types";
|
|
3
|
+
export declare class OperationInstruction extends InstructionBase {
|
|
4
|
+
constructor(kind: string, temp: IValue, left: IValue, right?: IValue);
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperationInstruction = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
class OperationInstruction extends _1.InstructionBase {
|
|
6
|
-
constructor(kind, temp, left, right) {
|
|
7
|
-
super("op", kind, temp, left, right);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.OperationInstruction = OperationInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperationInstruction = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
class OperationInstruction extends _1.InstructionBase {
|
|
6
|
+
constructor(kind, temp, left, right) {
|
|
7
|
+
super("op", kind, temp, left, right);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.OperationInstruction = OperationInstruction;
|
|
11
11
|
//# sourceMappingURL=OperationInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationInstruction.js","sourceRoot":"","sources":["../../src/instructions/OperationInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,oBAAqB,SAAQ,kBAAe;
|
|
1
|
+
{"version":3,"file":"OperationInstruction.js","sourceRoot":"","sources":["../../src/instructions/OperationInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,oBAAqB,SAAQ,kBAAe;IACvD,YAAY,IAAY,EAAE,IAAY,EAAE,IAAY,EAAE,KAAc;QAClE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;CACF;AAJD,oDAIC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InstructionBase } from ".";
|
|
2
|
-
import { IValue } from "../types";
|
|
3
|
-
export declare class SetCounterInstruction extends InstructionBase {
|
|
4
|
-
constructor(value: IValue);
|
|
5
|
-
}
|
|
1
|
+
import { InstructionBase } from ".";
|
|
2
|
+
import { IValue } from "../types";
|
|
3
|
+
export declare class SetCounterInstruction extends InstructionBase {
|
|
4
|
+
constructor(value: IValue);
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetCounterInstruction = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
class SetCounterInstruction extends _1.InstructionBase {
|
|
6
|
-
constructor(value) {
|
|
7
|
-
super("set", "@counter", value);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.SetCounterInstruction = SetCounterInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetCounterInstruction = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
class SetCounterInstruction extends _1.InstructionBase {
|
|
6
|
+
constructor(value) {
|
|
7
|
+
super("set", "@counter", value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SetCounterInstruction = SetCounterInstruction;
|
|
11
11
|
//# sourceMappingURL=SetCounterInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetCounterInstruction.js","sourceRoot":"","sources":["../../src/instructions/SetCounterInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,qBAAsB,SAAQ,kBAAe;
|
|
1
|
+
{"version":3,"file":"SetCounterInstruction.js","sourceRoot":"","sources":["../../src/instructions/SetCounterInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,qBAAsB,SAAQ,kBAAe;IACxD,YAAY,KAAa;QACvB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;CACF;AAJD,sDAIC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InstructionBase } from ".";
|
|
2
|
-
import { IValue } from "../types";
|
|
3
|
-
export declare class SetInstruction extends InstructionBase {
|
|
4
|
-
constructor(store: IValue, value: IValue);
|
|
5
|
-
}
|
|
1
|
+
import { InstructionBase } from ".";
|
|
2
|
+
import { IValue } from "../types";
|
|
3
|
+
export declare class SetInstruction extends InstructionBase {
|
|
4
|
+
constructor(store: IValue, value: IValue);
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetInstruction = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
class SetInstruction extends _1.InstructionBase {
|
|
6
|
-
constructor(store, value) {
|
|
7
|
-
super("set", store, value);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.SetInstruction = SetInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetInstruction = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
class SetInstruction extends _1.InstructionBase {
|
|
6
|
+
constructor(store, value) {
|
|
7
|
+
super("set", store, value);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SetInstruction = SetInstruction;
|
|
11
11
|
//# sourceMappingURL=SetInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetInstruction.js","sourceRoot":"","sources":["../../src/instructions/SetInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,cAAe,SAAQ,kBAAe;
|
|
1
|
+
{"version":3,"file":"SetInstruction.js","sourceRoot":"","sources":["../../src/instructions/SetInstruction.ts"],"names":[],"mappings":";;;AAAA,wBAAoC;AAGpC,MAAa,cAAe,SAAQ,kBAAe;IACjD,YAAY,KAAa,EAAE,KAAa;QACtC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF;AAJD,wCAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstructionBase } from "./InstructionBase";
|
|
2
|
-
export declare class ZeroSpaceInstruction extends InstructionBase {
|
|
3
|
-
toString(): string;
|
|
4
|
-
}
|
|
1
|
+
import { InstructionBase } from "./InstructionBase";
|
|
2
|
+
export declare class ZeroSpaceInstruction extends InstructionBase {
|
|
3
|
+
toString(): string;
|
|
4
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZeroSpaceInstruction = void 0;
|
|
4
|
-
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
-
class ZeroSpaceInstruction extends InstructionBase_1.InstructionBase {
|
|
6
|
-
toString() {
|
|
7
|
-
return this.args.join("");
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.ZeroSpaceInstruction = ZeroSpaceInstruction;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ZeroSpaceInstruction = void 0;
|
|
4
|
+
const InstructionBase_1 = require("./InstructionBase");
|
|
5
|
+
class ZeroSpaceInstruction extends InstructionBase_1.InstructionBase {
|
|
6
|
+
toString() {
|
|
7
|
+
return this.args.join("");
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ZeroSpaceInstruction = ZeroSpaceInstruction;
|
|
11
11
|
//# sourceMappingURL=ZeroSpaceInstruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZeroSpaceInstruction.js","sourceRoot":"","sources":["../../src/instructions/ZeroSpaceInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,MAAa,oBAAqB,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"ZeroSpaceInstruction.js","sourceRoot":"","sources":["../../src/instructions/ZeroSpaceInstruction.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,MAAa,oBAAqB,SAAQ,iCAAe;IACvD,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;CACF;AAJD,oDAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./InstructionBase";
|
|
2
|
-
export * from "./OperationInstruction";
|
|
3
|
-
export * from "./SetInstruction";
|
|
4
|
-
export * from "./EndInstruction";
|
|
5
|
-
export * from "./AddressResolver";
|
|
6
|
-
export * from "./JumpInstruction";
|
|
7
|
-
export * from "./SetCounterInstruction";
|
|
8
|
-
export * from "./ZeroSpaceInstruction";
|
|
9
|
-
export * from "./ControlInstructions";
|
|
1
|
+
export * from "./InstructionBase";
|
|
2
|
+
export * from "./OperationInstruction";
|
|
3
|
+
export * from "./SetInstruction";
|
|
4
|
+
export * from "./EndInstruction";
|
|
5
|
+
export * from "./AddressResolver";
|
|
6
|
+
export * from "./JumpInstruction";
|
|
7
|
+
export * from "./SetCounterInstruction";
|
|
8
|
+
export * from "./ZeroSpaceInstruction";
|
|
9
|
+
export * from "./ControlInstructions";
|