From 5daa2bd553fd98c5e794a17443502deab0b85d94 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 14 Oct 2024 19:52:17 -0500 Subject: [PATCH] Fixed typo in code --- src/writings/2-language-ideas.md | 2 +- src/writings/3-compiler-status.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/writings/3-compiler-status.md diff --git a/src/writings/2-language-ideas.md b/src/writings/2-language-ideas.md index acea28f..9ab9c95 100644 --- a/src/writings/2-language-ideas.md +++ b/src/writings/2-language-ideas.md @@ -262,7 +262,7 @@ They are often used to lazily evaluate an open-ended sequence, or to iterate over a collection. The `:` operator inside a for loop expression will call a function repeatedly until the function fails to return a value ```rust -range (minimum: i64, maximum: i64) -> (() -> i64?) { +range :: (minimum: i64, maximum: i64) -> (() -> i64?) { current := minimum; () [minimum, maximum, current] { last := current; diff --git a/src/writings/3-compiler-status.md b/src/writings/3-compiler-status.md new file mode 100644 index 0000000..dc343f5 --- /dev/null +++ b/src/writings/3-compiler-status.md @@ -0,0 +1,14 @@ +# compiler status +- [x] Tokenizing +- [ ] Parsing + - [x] Variable declaration / assignment + - [ ] Function definitions + - [x] Operator expressions + - [ ] Block expressions + - [ ] If-else expressions + - [ ] Function expressions + - [ ] Function calling +- [ ] Intermediate representation +- [ ] WASM generation +- [ ] Bootstrapping +- [ ] Optimizing passes