public static Logic parseIntoFunctionCall(string word, int lineNumber, Scope currentScope) { string funcName = getFunctionName(word, lineNumber); string funcPara = getFunctionInParameter(word, lineNumber); return(new FunctionCall(word, funcName, PackageUnWrapper.removeSurrondingParanteser(funcPara), null)); }
public static void linkFunctionCall(FunctionCall theFunc, int lineNumber, Compiler.Scope currentScope) { Compiler.Function searchedFunc = currentScope.scopeFunctions.getSavedFunction(theFunc.name, lineNumber); if (searchedFunc != null) { Compiler.Variable[] inputVariables = validParameters(PackageUnWrapper.removeSurrondingParanteser(theFunc.parameter), searchedFunc, lineNumber, currentScope); theFunc.targetFunc = searchedFunc; } }