From 87bad32300ec9f7f1d9772c528a4e89394e71b7f Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 29 Apr 2021 17:51:36 +0200 Subject: [PATCH] adding function module --- function.h | 6 ++++++ parser.h | 37 +------------------------------------ 2 files changed, 7 insertions(+), 36 deletions(-) create mode 100644 function.h diff --git a/function.h b/function.h new file mode 100644 index 0000000..9b3214f --- /dev/null +++ b/function.h @@ -0,0 +1,6 @@ +#pragma once +#include +#include + +const uint32_t function_create(const std::string name); +void function_parameter_add(const uint32_t id, const std::string name, const ) \ No newline at end of file diff --git a/parser.h b/parser.h index 969b872..3c43d80 100644 --- a/parser.h +++ b/parser.h @@ -8,48 +8,15 @@ enum OPS { OP_SWAP, OP_LOAD, - //OP_LOADI, OP_STORE, - //OP_STOREI, -/* - OP_LOADXY, - OP_STOREXY, - OP_SETX, - OP_SETY, - OP_SETZ, - OP_GETY, - OP_GETZ, - OP_INCX, - OP_DECX, - OP_INCY, - OP_DECY, - OP_INCZ, - OP_DECZ, -*/ + OP_JMP, OP_JNT, OP_JTR, - //OP_JSR, OP_RET, OP_CALL, OP_CALLEX, // AFEGIT PER A JAILSCRIPT -/* - OP_RJ, - OP_RB, - OP_RJZ, - OP_RJN, - OP_RBZ, - OP_RBN, - OP_RJYZ, - OP_RJYN, - OP_RBYZ, - OP_RBYN, - OP_RJZZ, - OP_RJZN, - OP_RBZZ, - OP_RBZN, -*/ OP_ADD, OP_SUB, OP_MUL, @@ -70,8 +37,6 @@ enum OPS { OP_LEQ, OP_GEQ, - //OP_IN, - //OP_OUT, OP_SLEEP, };