|
@@ -12,12 +12,12 @@ import { StoreValue } from '../store/value/store_value';
|
|
|
*/
|
|
|
|
|
|
export function createNumElementsFun () {
|
|
|
- const numElementsFun = (sto, _) => {
|
|
|
+ const numElementsFun = async (sto, _) => {
|
|
|
const vector = sto.applyStore("vector");
|
|
|
const temp = new StoreValue(Types.INTEGER, toInt(vector.lines));
|
|
|
sto.mode = Modes.RETURN;
|
|
|
sto.insertStore("$", temp);
|
|
|
- return Promise.resolve(sto);
|
|
|
+ return sto;
|
|
|
}
|
|
|
|
|
|
const block = new Commands.CommandBlock([], [new Commands.SysCall(numElementsFun)]);
|
|
@@ -28,12 +28,12 @@ export function createNumElementsFun () {
|
|
|
}
|
|
|
|
|
|
export function createMatrixLinesFun () {
|
|
|
- const matrixLinesFun = (sto, _) => {
|
|
|
+ const matrixLinesFun = async (sto, _) => {
|
|
|
const matrix = sto.applyStore("matrix");
|
|
|
const temp = new StoreValue(Types.INTEGER, toInt(matrix.lines));
|
|
|
sto.mode = Modes.RETURN;
|
|
|
sto.insertStore("$", temp);
|
|
|
- return Promise.resolve(sto);
|
|
|
+ return sto;
|
|
|
}
|
|
|
|
|
|
const block = new Commands.CommandBlock([], [new Commands.SysCall(matrixLinesFun)]);
|
|
@@ -44,12 +44,12 @@ export function createMatrixLinesFun () {
|
|
|
}
|
|
|
|
|
|
export function createMatrixColumnsFun () {
|
|
|
- const matrixColumnsFun = (sto, _) => {
|
|
|
+ const matrixColumnsFun = async (sto, _) => {
|
|
|
const matrix = sto.applyStore("matrix");
|
|
|
const temp = new StoreValue(Types.INTEGER, toInt(matrix.columns));
|
|
|
sto.mode = Modes.RETURN;
|
|
|
sto.insertStore("$", temp);
|
|
|
- return Promise.resolve(sto);
|
|
|
+ return sto;
|
|
|
}
|
|
|
|
|
|
const block = new Commands.CommandBlock([], [new Commands.SysCall(matrixColumnsFun)]);
|