mlogjs 0.2.0 → 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.
Files changed (202) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +68 -18
  3. package/build/Compiler.d.ts +18 -18
  4. package/build/Compiler.js +99 -119
  5. package/build/Compiler.js.map +1 -1
  6. package/build/Scope.d.ts +26 -26
  7. package/build/Scope.js +60 -60
  8. package/build/Scope.js.map +1 -1
  9. package/build/bin.d.ts +2 -2
  10. package/build/bin.js +60 -41
  11. package/build/bin.js.map +1 -1
  12. package/build/handlers/BlockStatement.d.ts +2 -2
  13. package/build/handlers/BlockStatement.js +13 -13
  14. package/build/handlers/CallExpression.d.ts +3 -3
  15. package/build/handlers/CallExpression.js +19 -19
  16. package/build/handlers/ForStatement.d.ts +2 -2
  17. package/build/handlers/ForStatement.js +31 -31
  18. package/build/handlers/Function.d.ts +4 -4
  19. package/build/handlers/Function.js +35 -35
  20. package/build/handlers/Identifier.d.ts +2 -2
  21. package/build/handlers/Identifier.js +7 -7
  22. package/build/handlers/IfStatement.d.ts +2 -2
  23. package/build/handlers/IfStatement.js +24 -24
  24. package/build/handlers/Literal.d.ts +2 -2
  25. package/build/handlers/Literal.js +17 -17
  26. package/build/handlers/Object.d.ts +4 -4
  27. package/build/handlers/Object.js +43 -43
  28. package/build/handlers/OperationExpressions.d.ts +7 -7
  29. package/build/handlers/OperationExpressions.js +32 -32
  30. package/build/handlers/Program.d.ts +2 -2
  31. package/build/handlers/Program.js +8 -8
  32. package/build/handlers/Program.js.map +1 -1
  33. package/build/handlers/Statements.d.ts +5 -5
  34. package/build/handlers/Statements.js +29 -29
  35. package/build/handlers/TemplateExpression.d.ts +2 -2
  36. package/build/handlers/TemplateExpression.js +17 -17
  37. package/build/handlers/VariableDeclaration.d.ts +3 -3
  38. package/build/handlers/VariableDeclaration.js +55 -55
  39. package/build/handlers/WhileStatement.d.ts +2 -2
  40. package/build/handlers/WhileStatement.js +22 -22
  41. package/build/handlers/index.d.ts +14 -14
  42. package/build/handlers/index.js +30 -30
  43. package/build/index.d.ts +1 -1
  44. package/build/index.js +7 -7
  45. package/build/initScope.d.ts +2 -0
  46. package/build/initScope.js +40 -0
  47. package/build/initScope.js.map +1 -0
  48. package/build/instructions/AddressResolver.d.ts +12 -12
  49. package/build/instructions/AddressResolver.js +30 -30
  50. package/build/instructions/ControlInstructions.d.ts +11 -11
  51. package/build/instructions/ControlInstructions.js +22 -22
  52. package/build/instructions/EndInstruction.d.ts +4 -4
  53. package/build/instructions/EndInstruction.js +10 -10
  54. package/build/instructions/InstructionBase.d.ts +10 -10
  55. package/build/instructions/InstructionBase.js +20 -20
  56. package/build/instructions/JumpInstruction.d.ts +15 -15
  57. package/build/instructions/JumpInstruction.js +21 -21
  58. package/build/instructions/OperationInstruction.d.ts +5 -5
  59. package/build/instructions/OperationInstruction.js +10 -10
  60. package/build/instructions/SetCounterInstruction.d.ts +5 -5
  61. package/build/instructions/SetCounterInstruction.js +10 -10
  62. package/build/instructions/SetInstruction.d.ts +5 -5
  63. package/build/instructions/SetInstruction.js +10 -10
  64. package/build/instructions/ZeroSpaceInstruction.d.ts +4 -4
  65. package/build/instructions/ZeroSpaceInstruction.js +10 -10
  66. package/build/instructions/index.d.ts +9 -9
  67. package/build/instructions/index.js +25 -25
  68. package/build/macros/Building.d.ts +11 -11
  69. package/build/macros/Building.js +80 -80
  70. package/build/macros/Function.d.ts +12 -12
  71. package/build/macros/Function.js +19 -19
  72. package/build/macros/Math.d.ts +5 -5
  73. package/build/macros/Math.js +56 -56
  74. package/build/macros/Math.js.map +1 -1
  75. package/build/macros/Memory.d.ts +5 -5
  76. package/build/macros/Memory.js +60 -60
  77. package/build/macros/Namespace.d.ts +21 -21
  78. package/build/macros/Namespace.js +97 -97
  79. package/build/macros/Other.d.ts +5 -5
  80. package/build/macros/Other.js +19 -19
  81. package/build/macros/RawValue.d.ts +5 -5
  82. package/build/macros/RawValue.js +15 -15
  83. package/build/macros/commands/{control.d.ts → Control.d.ts} +5 -5
  84. package/build/macros/commands/{control.js → Control.js} +24 -24
  85. package/build/macros/commands/{control.js.map → Control.js.map} +0 -0
  86. package/build/macros/commands/Draw.d.ts +5 -5
  87. package/build/macros/commands/Draw.js +38 -38
  88. package/build/macros/commands/DrawFlush.d.ts +5 -5
  89. package/build/macros/commands/DrawFlush.js +16 -16
  90. package/build/macros/commands/GetLink.d.ts +5 -5
  91. package/build/macros/commands/GetLink.js +20 -20
  92. package/build/macros/commands/Lookup.d.ts +5 -5
  93. package/build/macros/commands/Lookup.js +23 -23
  94. package/build/macros/commands/Print.d.ts +5 -5
  95. package/build/macros/commands/Print.js +13 -13
  96. package/build/macros/commands/PrintFlush.d.ts +5 -5
  97. package/build/macros/commands/PrintFlush.js +16 -16
  98. package/build/macros/commands/Radar.d.ts +7 -7
  99. package/build/macros/commands/Radar.js +60 -60
  100. package/build/macros/commands/Sensor.d.ts +5 -5
  101. package/build/macros/commands/Sensor.js +19 -19
  102. package/build/macros/commands/UnitBind.d.ts +5 -5
  103. package/build/macros/commands/UnitBind.js +16 -16
  104. package/build/macros/commands/UnitControl.d.ts +5 -5
  105. package/build/macros/commands/UnitControl.js +67 -67
  106. package/build/macros/commands/UnitLocate.d.ts +5 -5
  107. package/build/macros/commands/UnitLocate.js +54 -54
  108. package/build/macros/commands/UnitRadar.d.ts +5 -5
  109. package/build/macros/commands/UnitRadar.js +40 -40
  110. package/build/macros/commands/Wait.d.ts +5 -5
  111. package/build/macros/commands/Wait.js +17 -17
  112. package/build/macros/commands/index.d.ts +14 -14
  113. package/build/macros/commands/index.js +32 -32
  114. package/build/macros/index.d.ts +7 -7
  115. package/build/macros/index.js +39 -39
  116. package/build/operators.d.ts +25 -25
  117. package/build/operators.js +101 -101
  118. package/build/types.d.ts +49 -49
  119. package/build/types.js +27 -27
  120. package/build/utils.d.ts +3 -3
  121. package/build/utils.js +12 -12
  122. package/build/values/BaseValue.d.ts +5 -5
  123. package/build/values/BaseValue.js +111 -111
  124. package/build/values/FunctionValue.d.ts +34 -34
  125. package/build/values/FunctionValue.js +103 -103
  126. package/build/values/LiteralValue.d.ts +12 -12
  127. package/build/values/LiteralValue.js +87 -87
  128. package/build/values/LiteralValue.js.map +1 -1
  129. package/build/values/ObjectValue.d.ts +17 -17
  130. package/build/values/ObjectValue.js +49 -49
  131. package/build/values/StoreValue.d.ts +11 -11
  132. package/build/values/StoreValue.js +30 -30
  133. package/build/values/TempValue.d.ts +12 -12
  134. package/build/values/TempValue.js +66 -66
  135. package/build/values/TempValue.js.map +1 -1
  136. package/build/values/VoidValue.d.ts +11 -11
  137. package/build/values/VoidValue.js +30 -30
  138. package/build/values/index.d.ts +6 -6
  139. package/build/values/index.js +22 -22
  140. package/dist/mlogjs.es.js +6366 -0
  141. package/dist/mlogjs.umd.js +8 -0
  142. package/lib/commands.d.ts +326 -326
  143. package/lib/eslib/index.d.ts +3 -3
  144. package/lib/eslib/lib.d.ts +9 -9
  145. package/lib/eslib/lib.es2015.collection.d.ts +89 -89
  146. package/lib/eslib/lib.es2015.core.d.ts +16 -16
  147. package/lib/eslib/lib.es2015.d.ts +30 -30
  148. package/lib/eslib/lib.es2015.generator.d.ts +79 -79
  149. package/lib/eslib/lib.es2015.iterable.d.ts +70 -70
  150. package/lib/eslib/lib.es5.d.ts +295 -295
  151. package/lib/eslib/lib.es6.d.ts +18 -18
  152. package/lib/globals.d.ts +328 -328
  153. package/lib/helpers.d.ts +23 -23
  154. package/lib/index.d.ts +7 -7
  155. package/lib/kinds.d.ts +36 -36
  156. package/lib/memory.d.ts +17 -17
  157. package/lib/traits.d.ts +121 -121
  158. package/lib/util.d.ts +32 -32
  159. package/package.json +73 -48
  160. package/build/macros/Blocks.d.ts +0 -5
  161. package/build/macros/Blocks.js +0 -143
  162. package/build/macros/Blocks.js.map +0 -1
  163. package/build/macros/Draw.d.ts +0 -5
  164. package/build/macros/Draw.js +0 -39
  165. package/build/macros/Draw.js.map +0 -1
  166. package/build/macros/Items.d.ts +0 -5
  167. package/build/macros/Items.js +0 -20
  168. package/build/macros/Items.js.map +0 -1
  169. package/build/macros/Liquids.d.ts +0 -5
  170. package/build/macros/Liquids.js +0 -18
  171. package/build/macros/Liquids.js.map +0 -1
  172. package/build/macros/Symbol.d.ts +0 -0
  173. package/build/macros/Symbol.js +0 -1
  174. package/build/macros/Symbol.js.map +0 -1
  175. package/build/macros/SymbolNamespace.d.ts +0 -0
  176. package/build/macros/SymbolNamespace.js +0 -1
  177. package/build/macros/SymbolNamespace.js.map +0 -1
  178. package/build/macros/TypeFactory.d.ts +0 -8
  179. package/build/macros/TypeFactory.js +0 -22
  180. package/build/macros/TypeFactory.js.map +0 -1
  181. package/build/macros/Units.d.ts +0 -5
  182. package/build/macros/Units.js +0 -18
  183. package/build/macros/Units.js.map +0 -1
  184. package/build/macros/Vars.d.ts +0 -5
  185. package/build/macros/Vars.js +0 -18
  186. package/build/macros/Vars.js.map +0 -1
  187. package/build/macros/commands/Asm.d.ts +0 -5
  188. package/build/macros/commands/Asm.js +0 -21
  189. package/build/macros/commands/Asm.js.map +0 -1
  190. package/build/macros/commands/io.d.ts +0 -8
  191. package/build/macros/commands/io.js +0 -47
  192. package/build/macros/commands/io.js.map +0 -1
  193. package/build/macros/helpers/GetBuilding.d.ts +0 -5
  194. package/build/macros/helpers/GetBuilding.js +0 -16
  195. package/build/macros/helpers/GetBuilding.js.map +0 -1
  196. package/build/macros/helpers/GetVar.d.ts +0 -5
  197. package/build/macros/helpers/GetVar.js +0 -16
  198. package/build/macros/helpers/GetVar.js.map +0 -1
  199. package/build/macros/helpers/index.d.ts +0 -2
  200. package/build/macros/helpers/index.js +0 -15
  201. package/build/macros/helpers/index.js.map +0 -1
  202. package/dist/bundle.js +0 -1
@@ -1,12 +1,12 @@
1
- import { IScope, IValue, TValueInstructions } from "../types";
2
- import { VoidValue } from "../values";
3
- declare type TFunction = (...args: IValue[]) => TValueInstructions;
4
- export declare class MacroFunction extends VoidValue {
5
- macro: boolean;
6
- constant: boolean;
7
- fn: TFunction;
8
- constructor(scope: IScope, fn: TFunction);
9
- call(scope: IScope, args: IValue[]): TValueInstructions;
10
- eval(scope: IScope): TValueInstructions;
11
- }
12
- export {};
1
+ import { IScope, IValue, TValueInstructions } from "../types";
2
+ import { VoidValue } from "../values";
3
+ declare type TFunction = (...args: IValue[]) => TValueInstructions;
4
+ export declare class MacroFunction extends VoidValue {
5
+ macro: boolean;
6
+ constant: boolean;
7
+ fn: TFunction;
8
+ constructor(scope: IScope, fn: TFunction);
9
+ call(scope: IScope, args: IValue[]): TValueInstructions;
10
+ eval(scope: IScope): TValueInstructions;
11
+ }
12
+ export {};
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MacroFunction = void 0;
4
- const values_1 = require("../values");
5
- class MacroFunction extends values_1.VoidValue {
6
- constructor(scope, fn) {
7
- super(scope);
8
- this.macro = true;
9
- this.constant = true;
10
- this.fn = fn;
11
- }
12
- call(scope, args) {
13
- return this.fn.apply(this, args);
14
- }
15
- eval(scope) {
16
- return [this, []];
17
- }
18
- }
19
- exports.MacroFunction = MacroFunction;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MacroFunction = void 0;
4
+ const values_1 = require("../values");
5
+ class MacroFunction extends values_1.VoidValue {
6
+ constructor(scope, fn) {
7
+ super(scope);
8
+ this.macro = true;
9
+ this.constant = true;
10
+ this.fn = fn;
11
+ }
12
+ call(scope, args) {
13
+ return this.fn.apply(this, args);
14
+ }
15
+ eval(scope) {
16
+ return [this, []];
17
+ }
18
+ }
19
+ exports.MacroFunction = MacroFunction;
20
20
  //# sourceMappingURL=Function.js.map
@@ -1,5 +1,5 @@
1
- import { IScope } from "../types";
2
- import { ObjectValue } from "../values";
3
- export declare class MlogMath extends ObjectValue {
4
- constructor(scope: IScope);
5
- }
1
+ import { IScope } from "../types";
2
+ import { ObjectValue } from "../values";
3
+ export declare class MlogMath extends ObjectValue {
4
+ constructor(scope: IScope);
5
+ }
@@ -1,57 +1,57 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MlogMath = void 0;
4
- const instructions_1 = require("../instructions");
5
- const values_1 = require("../values");
6
- const Function_1 = require("./Function");
7
- const mathOperations = {
8
- max: (a, b) => Math.max(a, b),
9
- min: (a, b) => Math.min(a, b),
10
- angle: (a, b) => Math.atan2(a, b),
11
- len: (a, b) => Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)),
12
- noise: null,
13
- abs: a => Math.abs(a),
14
- log: a => Math.log(a),
15
- log10: a => Math.log(a) / Math.log(10),
16
- sin: a => Math.sin(a),
17
- cos: a => Math.cos(a),
18
- tan: a => Math.tan(a),
19
- floor: a => Math.floor(a),
20
- ceil: a => Math.ceil(a),
21
- sqrt: a => Math.ceil(a),
22
- rand: null,
23
- };
24
- function createMacroMathOperations(scope) {
25
- const macroMathOperations = {};
26
- for (const key in mathOperations) {
27
- const fn = mathOperations[key];
28
- macroMathOperations[key] = new Function_1.MacroFunction(scope, (a, b) => {
29
- if (b) {
30
- if (fn && a instanceof values_1.LiteralValue && b instanceof values_1.LiteralValue) {
31
- if (typeof a.data !== "number" || typeof b.data !== "number")
32
- throw new Error("Cannot do math operation with non-numerical literals.");
33
- return [new values_1.LiteralValue(scope, fn(a.num, b.num)), []];
34
- }
35
- const temp = new values_1.TempValue(scope);
36
- return [temp, [new instructions_1.OperationInstruction(key, temp, a, b)]];
37
- }
38
- if (fn && a instanceof values_1.LiteralValue) {
39
- if (typeof a.data !== "number")
40
- throw new Error("Cannot do math operation with non-numerical literal.");
41
- return [new values_1.LiteralValue(scope, fn(a.num)), []];
42
- }
43
- const temp = new values_1.TempValue(scope);
44
- return [temp, [new instructions_1.OperationInstruction(key, temp, a, b)]];
45
- });
46
- }
47
- return macroMathOperations;
48
- }
49
- class MlogMath extends values_1.ObjectValue {
50
- constructor(scope) {
51
- super(scope, createMacroMathOperations(scope));
52
- }
53
- }
54
- exports.MlogMath = MlogMath;
55
- // op angle result a b
56
- // op len result a b
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MlogMath = void 0;
4
+ const instructions_1 = require("../instructions");
5
+ const values_1 = require("../values");
6
+ const Function_1 = require("./Function");
7
+ const mathOperations = {
8
+ max: (a, b) => Math.max(a, b),
9
+ min: (a, b) => Math.min(a, b),
10
+ angle: (a, b) => Math.atan2(a, b),
11
+ len: (a, b) => Math.sqrt(a ** 2 + b ** 2),
12
+ noise: null,
13
+ abs: a => Math.abs(a),
14
+ log: a => Math.log(a),
15
+ log10: a => Math.log(a) / Math.log(10),
16
+ sin: a => Math.sin(a),
17
+ cos: a => Math.cos(a),
18
+ tan: a => Math.tan(a),
19
+ floor: a => Math.floor(a),
20
+ ceil: a => Math.ceil(a),
21
+ sqrt: a => Math.ceil(a),
22
+ rand: null,
23
+ };
24
+ function createMacroMathOperations(scope) {
25
+ const macroMathOperations = {};
26
+ for (const key in mathOperations) {
27
+ const fn = mathOperations[key];
28
+ macroMathOperations[key] = new Function_1.MacroFunction(scope, (a, b) => {
29
+ if (b) {
30
+ if (fn && a instanceof values_1.LiteralValue && b instanceof values_1.LiteralValue) {
31
+ if (typeof a.data !== "number" || typeof b.data !== "number")
32
+ throw new Error("Cannot do math operation with non-numerical literals.");
33
+ return [new values_1.LiteralValue(scope, fn(a.num, b.num)), []];
34
+ }
35
+ const temp = new values_1.TempValue(scope);
36
+ return [temp, [new instructions_1.OperationInstruction(key, temp, a, b)]];
37
+ }
38
+ if (fn && a instanceof values_1.LiteralValue) {
39
+ if (typeof a.data !== "number")
40
+ throw new Error("Cannot do math operation with non-numerical literal.");
41
+ return [new values_1.LiteralValue(scope, fn(a.num)), []];
42
+ }
43
+ const temp = new values_1.TempValue(scope);
44
+ return [temp, [new instructions_1.OperationInstruction(key, temp, a, b)]];
45
+ });
46
+ }
47
+ return macroMathOperations;
48
+ }
49
+ class MlogMath extends values_1.ObjectValue {
50
+ constructor(scope) {
51
+ super(scope, createMacroMathOperations(scope));
52
+ }
53
+ }
54
+ exports.MlogMath = MlogMath;
55
+ // op angle result a b
56
+ // op len result a b
57
57
  //# sourceMappingURL=Math.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Math.js","sourceRoot":"","sources":["../../src/macros/Math.ts"],"names":[],"mappings":";;;AAAA,kDAAwE;AAExE,sCAAiE;AACjE,yCAA2C;AAE3C,MAAM,cAAc,GAAuD;IACzE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7B,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACjC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAA,CAAC,EAAI,CAAC,CAAA,GAAG,SAAA,CAAC,EAAI,CAAC,CAAA,CAAC;IACzC,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,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2
- import { ObjectValue } from "../values";
3
- export declare class MemoryBuilder extends ObjectValue {
4
- constructor(scope: IScope);
5
- }
1
+ import { IScope } from "../types";
2
+ import { ObjectValue } from "../values";
3
+ export declare class MemoryBuilder extends ObjectValue {
4
+ constructor(scope: IScope);
5
+ }
@@ -1,61 +1,61 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MemoryBuilder = void 0;
4
- const operators_1 = require("../operators");
5
- const instructions_1 = require("../instructions");
6
- const values_1 = require("../values");
7
- const Function_1 = require("./Function");
8
- class MemoryEntry extends values_1.ObjectValue {
9
- constructor(scope, mem, prop) {
10
- super(scope, {
11
- $eval: new Function_1.MacroFunction(scope, () => {
12
- const temp = new values_1.TempValue(scope);
13
- return [temp, [new instructions_1.InstructionBase("read", temp, mem.cell, prop)]];
14
- }),
15
- "$=": new Function_1.MacroFunction(scope, value => {
16
- return [null, [new instructions_1.InstructionBase("write", prop, mem.cell, value)]];
17
- }),
18
- });
19
- }
20
- }
21
- for (const operator of operators_1.operators) {
22
- if (operator === "=")
23
- continue;
24
- MemoryEntry.prototype[operator] = function (...args) {
25
- return values_1.BaseValue.prototype[operator].apply(this, args);
26
- };
27
- }
28
- class MemoryMacro extends values_1.ObjectValue {
29
- constructor(scope, cell, size) {
30
- super(scope, {
31
- $get: new Function_1.MacroFunction(scope, (prop) => {
32
- if (prop instanceof values_1.LiteralValue && typeof prop.data !== "number")
33
- return [new values_1.VoidValue(scope), []];
34
- const obj = new MemoryEntry(scope, this, prop);
35
- return [obj, []];
36
- }),
37
- length: size,
38
- size,
39
- });
40
- this.cell = cell;
41
- this.name = cell.toString();
42
- }
43
- toString() {
44
- return this.name;
45
- }
46
- }
47
- class MemoryBuilder extends values_1.ObjectValue {
48
- constructor(scope) {
49
- super(scope, {
50
- $call: new Function_1.MacroFunction(scope, (cell, size = new values_1.LiteralValue(scope, 64)) => {
51
- if (!(cell instanceof values_1.ObjectValue))
52
- throw new Error("Memory cell must be a building object.");
53
- if (!(size instanceof values_1.LiteralValue && typeof size.data === "number"))
54
- throw new Error("The memory size must be a number literal.");
55
- return [new MemoryMacro(scope, cell, size), []];
56
- }),
57
- });
58
- }
59
- }
60
- exports.MemoryBuilder = MemoryBuilder;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemoryBuilder = void 0;
4
+ const operators_1 = require("../operators");
5
+ const instructions_1 = require("../instructions");
6
+ const values_1 = require("../values");
7
+ const Function_1 = require("./Function");
8
+ class MemoryEntry extends values_1.ObjectValue {
9
+ constructor(scope, mem, prop) {
10
+ super(scope, {
11
+ $eval: new Function_1.MacroFunction(scope, () => {
12
+ const temp = new values_1.TempValue(scope);
13
+ return [temp, [new instructions_1.InstructionBase("read", temp, mem.cell, prop)]];
14
+ }),
15
+ "$=": new Function_1.MacroFunction(scope, value => {
16
+ return [null, [new instructions_1.InstructionBase("write", prop, mem.cell, value)]];
17
+ }),
18
+ });
19
+ }
20
+ }
21
+ for (const operator of operators_1.operators) {
22
+ if (operator === "=")
23
+ continue;
24
+ MemoryEntry.prototype[operator] = function (...args) {
25
+ return values_1.BaseValue.prototype[operator].apply(this, args);
26
+ };
27
+ }
28
+ class MemoryMacro extends values_1.ObjectValue {
29
+ constructor(scope, cell, size) {
30
+ super(scope, {
31
+ $get: new Function_1.MacroFunction(scope, (prop) => {
32
+ if (prop instanceof values_1.LiteralValue && typeof prop.data !== "number")
33
+ return [new values_1.VoidValue(scope), []];
34
+ const obj = new MemoryEntry(scope, this, prop);
35
+ return [obj, []];
36
+ }),
37
+ length: size,
38
+ size,
39
+ });
40
+ this.cell = cell;
41
+ this.name = cell.toString();
42
+ }
43
+ toString() {
44
+ return this.name;
45
+ }
46
+ }
47
+ class MemoryBuilder extends values_1.ObjectValue {
48
+ constructor(scope) {
49
+ super(scope, {
50
+ $call: new Function_1.MacroFunction(scope, (cell, size = new values_1.LiteralValue(scope, 64)) => {
51
+ if (!(cell instanceof values_1.ObjectValue))
52
+ throw new Error("Memory cell must be a building object.");
53
+ if (!(size instanceof values_1.LiteralValue && typeof size.data === "number"))
54
+ throw new Error("The memory size must be a number literal.");
55
+ return [new MemoryMacro(scope, cell, size), []];
56
+ }),
57
+ });
58
+ }
59
+ }
60
+ exports.MemoryBuilder = MemoryBuilder;
61
61
  //# sourceMappingURL=Memory.js.map
@@ -1,21 +1,21 @@
1
- import { IScope } from "../types";
2
- import { ObjectValue } from "../values";
3
- interface NamespaceMacroOptions {
4
- changeCasing?: boolean;
5
- }
6
- export declare class NamespaceMacro extends ObjectValue {
7
- changeCasing: boolean;
8
- constructor(scope: IScope, { changeCasing }?: NamespaceMacroOptions);
9
- }
10
- export declare class VarsNamespace extends NamespaceMacro {
11
- constructor(scope: IScope);
12
- }
13
- export declare class UCommandsNamespace extends NamespaceMacro {
14
- constructor(scope: IScope);
15
- }
16
- export declare class Unit extends ObjectValue {
17
- name: string;
18
- constructor(scope: IScope, name: string);
19
- toString(): string;
20
- }
21
- export {};
1
+ import { IScope } from "../types";
2
+ import { ObjectValue } from "../values";
3
+ interface NamespaceMacroOptions {
4
+ changeCasing?: boolean;
5
+ }
6
+ export declare class NamespaceMacro extends ObjectValue {
7
+ changeCasing: boolean;
8
+ constructor(scope: IScope, { changeCasing }?: NamespaceMacroOptions);
9
+ }
10
+ export declare class VarsNamespace extends NamespaceMacro {
11
+ constructor(scope: IScope);
12
+ }
13
+ export declare class UCommandsNamespace extends NamespaceMacro {
14
+ constructor(scope: IScope);
15
+ }
16
+ export declare class Unit extends ObjectValue {
17
+ name: string;
18
+ constructor(scope: IScope, name: string);
19
+ toString(): string;
20
+ }
21
+ export {};
@@ -1,98 +1,98 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Unit = exports.UCommandsNamespace = exports.VarsNamespace = exports.NamespaceMacro = void 0;
4
- const utils_1 = require("../utils");
5
- const _1 = require(".");
6
- const values_1 = require("../values");
7
- const Building_1 = require("./Building");
8
- const instructions_1 = require("../instructions");
9
- const operators_1 = require("../operators");
10
- class NamespaceMacro extends values_1.ObjectValue {
11
- constructor(scope, { changeCasing = false } = {}) {
12
- super(scope, {
13
- $get: new _1.MacroFunction(scope, prop => {
14
- if (!(prop instanceof values_1.LiteralValue) || typeof prop.data !== "string")
15
- throw new Error("Cannot use dynamic properties on object macros");
16
- const symbolName = this.changeCasing
17
- ? (0, utils_1.camelToDashCase)(prop.data)
18
- : prop.data;
19
- return [new values_1.StoreValue(scope, `@${symbolName}`), []];
20
- }),
21
- });
22
- this.changeCasing = changeCasing;
23
- }
24
- }
25
- exports.NamespaceMacro = NamespaceMacro;
26
- class VarsNamespace extends NamespaceMacro {
27
- constructor(scope) {
28
- super(scope);
29
- const $get = this.data.$get;
30
- this.data.$get = new _1.MacroFunction(scope, prop => {
31
- if (prop instanceof values_1.LiteralValue) {
32
- if (prop.data === "unit")
33
- return [new Unit(scope, "@unit"), []];
34
- if (prop.data === "this")
35
- return [new Building_1.Building(scope, "@this"), []];
36
- }
37
- return $get.call(scope, [prop]);
38
- });
39
- }
40
- }
41
- exports.VarsNamespace = VarsNamespace;
42
- class UCommandsNamespace extends NamespaceMacro {
43
- constructor(scope) {
44
- super(scope);
45
- const $get = this.data.$get;
46
- this.data.$get = new _1.MacroFunction(scope, prop => {
47
- if (!(prop instanceof values_1.LiteralValue) || typeof prop.data !== "string")
48
- throw new Error("Cannot use dynamic properties on object macros");
49
- const symbolName = prop.data[0].toUpperCase() + prop.data.slice(1);
50
- return [new values_1.StoreValue(scope, `@command${symbolName}`), []];
51
- });
52
- }
53
- }
54
- exports.UCommandsNamespace = UCommandsNamespace;
55
- // TODO: repeated logic between UnitMacro and Building
56
- class Unit extends values_1.ObjectValue {
57
- constructor(scope, name) {
58
- super(scope, {
59
- $get: new _1.MacroFunction(scope, prop => {
60
- if (prop instanceof values_1.LiteralValue && typeof prop.data === "string") {
61
- const name = Building_1.itemNames.includes(prop.data)
62
- ? (0, utils_1.camelToDashCase)(prop.data)
63
- : prop.data;
64
- const temp = new values_1.TempValue(scope);
65
- // special case, should return another unit or building
66
- const result = prop.data === "controller" ? new Unit(scope, temp.name) : temp;
67
- return [
68
- result,
69
- [new instructions_1.InstructionBase("sensor", result, this, `@${name}`)],
70
- ];
71
- }
72
- if (prop instanceof values_1.StoreValue) {
73
- const temp = new values_1.TempValue(scope);
74
- return [temp, [new instructions_1.InstructionBase("sensor", temp, this, prop)]];
75
- }
76
- throw new Error("Building property acessors must be string literals or stores");
77
- }),
78
- });
79
- this.name = name;
80
- }
81
- toString() {
82
- return this.name;
83
- }
84
- }
85
- exports.Unit = Unit;
86
- for (const key in operators_1.operatorMap) {
87
- const kind = operators_1.operatorMap[key];
88
- Unit.prototype[key] = function (scope, value) {
89
- const left = new values_1.StoreValue(scope, this.name);
90
- const [right, rightInst] = value.eval(scope);
91
- const temp = new values_1.TempValue(scope);
92
- return [
93
- temp,
94
- [...rightInst, new instructions_1.OperationInstruction(kind, temp, left, right)],
95
- ];
96
- };
97
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Unit = exports.UCommandsNamespace = exports.VarsNamespace = exports.NamespaceMacro = void 0;
4
+ const utils_1 = require("../utils");
5
+ const _1 = require(".");
6
+ const values_1 = require("../values");
7
+ const Building_1 = require("./Building");
8
+ const instructions_1 = require("../instructions");
9
+ const operators_1 = require("../operators");
10
+ class NamespaceMacro extends values_1.ObjectValue {
11
+ constructor(scope, { changeCasing = false } = {}) {
12
+ super(scope, {
13
+ $get: new _1.MacroFunction(scope, prop => {
14
+ if (!(prop instanceof values_1.LiteralValue) || typeof prop.data !== "string")
15
+ throw new Error("Cannot use dynamic properties on object macros");
16
+ const symbolName = this.changeCasing
17
+ ? (0, utils_1.camelToDashCase)(prop.data)
18
+ : prop.data;
19
+ return [new values_1.StoreValue(scope, `@${symbolName}`), []];
20
+ }),
21
+ });
22
+ this.changeCasing = changeCasing;
23
+ }
24
+ }
25
+ exports.NamespaceMacro = NamespaceMacro;
26
+ class VarsNamespace extends NamespaceMacro {
27
+ constructor(scope) {
28
+ super(scope);
29
+ const $get = this.data.$get;
30
+ this.data.$get = new _1.MacroFunction(scope, prop => {
31
+ if (prop instanceof values_1.LiteralValue) {
32
+ if (prop.data === "unit")
33
+ return [new Unit(scope, "@unit"), []];
34
+ if (prop.data === "this")
35
+ return [new Building_1.Building(scope, "@this"), []];
36
+ }
37
+ return $get.call(scope, [prop]);
38
+ });
39
+ }
40
+ }
41
+ exports.VarsNamespace = VarsNamespace;
42
+ class UCommandsNamespace extends NamespaceMacro {
43
+ constructor(scope) {
44
+ super(scope);
45
+ const $get = this.data.$get;
46
+ this.data.$get = new _1.MacroFunction(scope, prop => {
47
+ if (!(prop instanceof values_1.LiteralValue) || typeof prop.data !== "string")
48
+ throw new Error("Cannot use dynamic properties on object macros");
49
+ const symbolName = prop.data[0].toUpperCase() + prop.data.slice(1);
50
+ return [new values_1.StoreValue(scope, `@command${symbolName}`), []];
51
+ });
52
+ }
53
+ }
54
+ exports.UCommandsNamespace = UCommandsNamespace;
55
+ // TODO: repeated logic between UnitMacro and Building
56
+ class Unit extends values_1.ObjectValue {
57
+ constructor(scope, name) {
58
+ super(scope, {
59
+ $get: new _1.MacroFunction(scope, prop => {
60
+ if (prop instanceof values_1.LiteralValue && typeof prop.data === "string") {
61
+ const name = Building_1.itemNames.includes(prop.data)
62
+ ? (0, utils_1.camelToDashCase)(prop.data)
63
+ : prop.data;
64
+ const temp = new values_1.TempValue(scope);
65
+ // special case, should return another unit or building
66
+ const result = prop.data === "controller" ? new Unit(scope, temp.name) : temp;
67
+ return [
68
+ result,
69
+ [new instructions_1.InstructionBase("sensor", result, this, `@${name}`)],
70
+ ];
71
+ }
72
+ if (prop instanceof values_1.StoreValue) {
73
+ const temp = new values_1.TempValue(scope);
74
+ return [temp, [new instructions_1.InstructionBase("sensor", temp, this, prop)]];
75
+ }
76
+ throw new Error("Building property acessors must be string literals or stores");
77
+ }),
78
+ });
79
+ this.name = name;
80
+ }
81
+ toString() {
82
+ return this.name;
83
+ }
84
+ }
85
+ exports.Unit = Unit;
86
+ for (const key in operators_1.operatorMap) {
87
+ const kind = operators_1.operatorMap[key];
88
+ Unit.prototype[key] = function (scope, value) {
89
+ const left = new values_1.StoreValue(scope, this.name);
90
+ const [right, rightInst] = value.eval(scope);
91
+ const temp = new values_1.TempValue(scope);
92
+ return [
93
+ temp,
94
+ [...rightInst, new instructions_1.OperationInstruction(kind, temp, left, right)],
95
+ ];
96
+ };
97
+ }
98
98
  //# sourceMappingURL=Namespace.js.map
@@ -1,5 +1,5 @@
1
- import { IScope } from "../types";
2
- import { MacroFunction } from "./Function";
3
- export declare class Concat extends MacroFunction {
4
- constructor(scope: IScope);
5
- }
1
+ import { IScope } from "../types";
2
+ import { MacroFunction } from "./Function";
3
+ export declare class Concat extends MacroFunction {
4
+ constructor(scope: IScope);
5
+ }
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Concat = void 0;
4
- const values_1 = require("../values");
5
- const Function_1 = require("./Function");
6
- class Concat extends Function_1.MacroFunction {
7
- constructor(scope) {
8
- super(scope, (...values) => {
9
- for (const value of values)
10
- if (!(value instanceof values_1.LiteralValue))
11
- throw new Error("Concat arguments must all be literal values.");
12
- return [
13
- new values_1.LiteralValue(scope, values.map(v => v.data).join("")),
14
- [],
15
- ];
16
- });
17
- }
18
- }
19
- exports.Concat = Concat;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Concat = void 0;
4
+ const values_1 = require("../values");
5
+ const Function_1 = require("./Function");
6
+ class Concat extends Function_1.MacroFunction {
7
+ constructor(scope) {
8
+ super(scope, (...values) => {
9
+ for (const value of values)
10
+ if (!(value instanceof values_1.LiteralValue))
11
+ throw new Error("Concat arguments must all be literal values.");
12
+ return [
13
+ new values_1.LiteralValue(scope, values.map(v => v.data).join("")),
14
+ [],
15
+ ];
16
+ });
17
+ }
18
+ }
19
+ exports.Concat = Concat;
20
20
  //# sourceMappingURL=Other.js.map
@@ -1,5 +1,5 @@
1
- import { IScope } from "../types";
2
- import { MacroFunction } from "./Function";
3
- export declare class RawValueMacro extends MacroFunction {
4
- constructor(scope: IScope);
5
- }
1
+ import { IScope } from "../types";
2
+ import { MacroFunction } from "./Function";
3
+ export declare class RawValueMacro extends MacroFunction {
4
+ constructor(scope: IScope);
5
+ }