From 085139c5ace25dbb4f6280017a51135e925d01da Mon Sep 17 00:00:00 2001 From: shadow cat Date: Tue, 8 Apr 2025 20:25:27 -0400 Subject: [PATCH] update readme --- README.md | 5 +++-- src/ir/lower/func.rs | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 15dd0d5..c914b30 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,18 @@ my child (programming language) everything is subject to change rn, and this probably isn't up to date +also nothing is super well tested right now so I'm sure there are bugs I don't think exist `cargo run -- data/test.lang` currently working!!: - functions (arguments, returning) - assembly blocks (input, output for expression) -- kind of structs (construction, field access, but not modifying lmao) +- structs (construction, field access, modifying, nesting) todo: +- generics (groundwork is there I think) - actually handle jumps & LIs that are too large - iterators? - borrow checking -- multiple var instances for struct fields / fix all that stuff - basic optimization: use registers, remove temp var moves diff --git a/src/ir/lower/func.rs b/src/ir/lower/func.rs index b1b6ab4..6e86538 100644 --- a/src/ir/lower/func.rs +++ b/src/ir/lower/func.rs @@ -61,9 +61,6 @@ pub enum IRLInstruction { impl IRLInstruction { pub fn is_ret(&self) -> bool { - match self { - Self::Ret { .. } => true, - _ => false, - } + matches!(self, Self::Ret { .. }) } }