From: Carlos Maniero <carlos@maniero.me>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Carlos Maniero <carlos@maniero.me>
Subject: [PATCH olang v1 6/6] ast: remove dead code from var_assign ast node
Date: Thu, 24 Oct 2024 12:38:52 +0000 (UTC) [thread overview]
Message-ID: <20241024123825.120390-7-carlos@maniero.me> (raw)
In-Reply-To: <20241024123825.120390-1-carlos@maniero.me>
Previously, the var_assign was a ast_node but it was replaced to be an
binop. The previous struct was not removed tho.
Signed-off-by: Carlos Maniero <carlos@maniero.me>
---
src/ast.h | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/ast.h b/src/ast.h
index 8cf072a..4ba0848 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -182,13 +182,6 @@ typedef struct ast_unary_op
ast_node_t *operand;
} ast_unary_op_t;
-typedef struct ast_var_assign_stmt
-{
- AST_NODE_HEAD;
- ast_node_t *ref;
- ast_node_t *value;
-} ast_var_assign_stmt_t;
-
typedef struct ast_return_stmt
{
AST_NODE_HEAD;
@@ -222,7 +215,6 @@ typedef union ast_node
ast_literal_t as_literal;
ast_ref_t as_ref;
ast_block_t as_block;
- ast_var_assign_stmt_t as_var_assign_stmt;
ast_return_stmt_t as_return_stmt;
ast_if_stmt_t as_if_stmt;
ast_while_stmt_t as_while_stmt;
--
2.46.1
next prev parent reply other threads:[~2024-10-24 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 12:38 [PATCH olang v1 0/6] Remove symbol lookups from codegen Carlos Maniero
2024-10-24 12:38 ` [PATCH olang v1 1/6] ast: create the ast_id_t and apply it to var_def and ref Carlos Maniero
2024-10-24 12:38 ` [PATCH olang v1 2/6] semantics: resolve variable symbols Carlos Maniero
2024-10-24 12:38 ` [PATCH olang v1 3/6] semantics: refactor: use the ast_id_t into the fn_call node Carlos Maniero
2024-10-24 12:38 ` [PATCH olang v1 4/6] semantics: refactor: use the ast_id_t into the fn_def.params Carlos Maniero
2024-10-24 12:38 ` [PATCH olang v1 5/6] type: refactor: rename type.id to type.name Carlos Maniero
2024-10-24 12:38 ` Carlos Maniero [this message]
2024-10-24 12:39 ` [olang/patches/.build.yml] build success builds.sr.ht
2024-10-31 3:16 ` [PATCH olang v1 0/6] Remove symbol lookups from codegen Carlos Maniero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241024123825.120390-7-carlos@maniero.me \
--to=carlos@maniero.me \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox