commit 23c916f2dce148c3ce8e307e93cf7b3debf3dfd5
parent 4162122500c5155aad6969bd5c31f3e00043e465
Author: S Knutsen <samuel@knutsen.co>
Date: Mon, 15 Jul 2024 18:45:05 +0100
Added two more TODO items.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -96,6 +96,8 @@ seam --sexp <<< '(hello (%define subject world) %subject)'
- [ ] `(%to-string ...)`, `(%join ...)`, `(%map ...)`, `(%filter ...)` macros.
- [ ] Escape evaluating macros with `\%`.
- [x] `(%format "{}")` macro with Rust's `format` syntax. e.g. `(%format "Hello {}, age {age:0>2}" "Sam" :age 9)`
+ - [ ] Add `(%raw ...)` macro which takes a string and leaves it unchanged in the final output. Can also take any othe source code, for which it just embeds the expanded code (plain-text formatter).
+ - [ ] `(%formatter/html ...)` etc. which call the respective available formatters.
- [ ] Implement lexical scope by letting macros store a copy of the scope they were defined in (or a reference?).
- [ ] `(%embed "/path")` macro, like `%include`, but just returns the file contents as a string.
- [ ] Variadic arguments via `&rest` syntax.