From 62d0709a85a8027d212689aa1995a997152d4f32 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 16 May 2025 19:19:12 +0330 Subject: some clean ups --- src/runner/runner.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/runner/runner.h') diff --git a/src/runner/runner.h b/src/runner/runner.h index 5a12db3..e78f568 100644 --- a/src/runner/runner.h +++ b/src/runner/runner.h @@ -9,12 +9,19 @@ AstTree *runnerVariableGetValue(AstTreeVariable *variable); bool runAstTree(AstTreeRoots roots); -AstTree *runAstTreeFunction(AstTree *tree, AstTreeFunctionCallParam *arguments, +AstTree *runAstTreeFunction(AstTree *tree, AstTree **arguments, size_t arguments_size, bool isComptime); AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope, - AstTreeFunctionCallParam *arguments, - size_t arguments_size, bool isComptime); + AstTree **arguments, size_t arguments_size, + bool isComptime); AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet, - bool isLeft, bool isComptime, u32 *breakCount,bool *shouldContinue); + bool isLeft, bool isComptime, u32 *breakCount, + bool *shouldContinue); + +AstTree *getForVariable(AstTree *expr, AstTreeScope *scope, bool *shouldRet, + bool isLeft, bool isComptime, u32 *breakCount, + bool *shouldContinue, bool isLazy); + +bool discontinue(bool *shouldRet, u32 *breakCount); -- cgit v1.2.3