aboutsummaryrefslogtreecommitdiff
path: root/t/test3.chn
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-05-15 16:21:29 +0200
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-05-15 16:21:29 +0200
commitd917f41beca176b8f2b682ac3a2c25b148752b71 (patch)
tree7dca0da8e57841f2f8efa31783196888511002cd /t/test3.chn
parentf5cb35b87255ebbe2d322bcedde6bc7d5f6aebae (diff)
Add syntax form for writing macros
* src/core.lisp (syntax): Change evaluation rules to replace arguments inside macro expansion. * src/eval.lisp (tree-eval): Add Evaluation route for chains with a syntax closure. * t/test4.chn: New file.
Diffstat (limited to 't/test3.chn')
-rw-r--r--t/test3.chn4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test3.chn b/t/test3.chn
index d989187..42a0b97 100644
--- a/t/test3.chn
+++ b/t/test3.chn
@@ -1,3 +1,3 @@
{@define}{@define-function}{{@syntax}{@name @args @body}{{@define}{@name}{{@lambda}{@args}{@body}}}}%
-{@define-function}{@foo}{@a}{hola @a}%
-%{@foo}{mundo}
+{@define-function}{@foo}{@a @b}{hola @b}%
+{@foo}{mundo}{casa}