Updated parser

This commit is contained in:
2022-11-26 01:59:37 +00:00
parent 30c3a890ee
commit 4cf5c6a5bf
7 changed files with 107 additions and 167 deletions

View File

@@ -141,16 +141,16 @@ typedef struct NodeFnDecl {
} NodeFnDecl;
//function call
void emitASTFnCall(ASTNode** nodeHandle, ASTNode* arguments, int argumentCount);
void emitASTNodeFnCall(ASTNode** nodeHandle, ASTNode* arguments);
typedef struct NodeFnCall {
ASTNodeType type;
ASTNode* arguments;
int argumentCount;
int argumentCount; //NOTE: leave this, so it can be hacked by dottify()
} NodeFnCall;
//function return
void emitASTFnReturn(ASTNode* nodeHandle, ASTNode* returns);
void emitASTNodeFnReturn(ASTNode** nodeHandle, ASTNode* returns);
typedef struct NodeFnReturn {
ASTNodeType type;