I GIVE UP

This commit is contained in:
2022-08-29 21:38:54 +10:00
parent 08c8e7e3e6
commit 1c6c7e5d4f
11 changed files with 226 additions and 1046 deletions

View File

@@ -1370,7 +1370,6 @@ static void varDecl(Parser* parser, Node** nodeHandle) {
//TODO: static type checking?
//declare it
freeNode(*nodeHandle); //free the initial node
emitNodeVarDecl(nodeHandle, identifier, typeLiteral, expressionNode);
consume(parser, TOKEN_SEMICOLON, "Expected ';' at end of var declaration");
@@ -1515,7 +1514,6 @@ static void fnDecl(Parser* parser, Node** nodeHandle) {
blockStmt(parser, &blockNode);
//declare it
freeNode(*nodeHandle); //free the initial node, because WTF?
emitNodeFnDecl(nodeHandle, identifier, argumentNode, returnNode, blockNode);
}