From: Michael D. Lowis Date: Tue, 6 Jul 2021 01:41:27 +0000 (-0400) Subject: push ast.c X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=a829953c2093b0f90bdc471dc7bed024555ce598;p=proto%2Fobnc.git push ast.c --- diff --git a/cerise/src/ast.c b/cerise/src/ast.c index a2f7ba7..6732513 100644 --- a/cerise/src/ast.c +++ b/cerise/src/ast.c @@ -1,5 +1,15 @@ #include +/* Optimizations to Perform: + +* Constant folding - (Constant expression evaluation) +* Dead code elimination +* Block coalescing +* + +*/ + + AstNode* ast_new(int type, AstNode* l0, AstNode* l1, AstNode* l2) { AstNode* node = calloc(1, sizeof(AstNode));