add comments, fix std bugs, add menu

This commit is contained in:
suchmememanyskill
2021-07-23 14:03:49 +02:00
parent 6543a245c4
commit 5bd4dd3a48
10 changed files with 111 additions and 19 deletions

View File

@@ -320,15 +320,15 @@ ParserRet_t parseScript(char* in, u32 len) {
}
if (tokenType == Token_Variable) {
ClassFunctionTableEntry_t* cfte = searchStdLib(var);
u8 stdLen = 0;
ClassFunctionTableEntry_t* cfte = searchStdLib(var, &stdLen);
if (cfte == NULL) {
CreateVariableReferenceStr(var);
op.variable = reference;
}
else {
VariableReference_t reference = { .staticVariableType = 3, .staticFunction = cfte };
VariableReference_t reference = { .staticVariableType = 3, .staticFunction = cfte, .staticFunctionLen = stdLen };
op.variable = reference;
}
}