From d917f41beca176b8f2b682ac3a2c25b148752b71 Mon Sep 17 00:00:00 2001 From: Thomas Albers Raviola Date: Wed, 15 May 2024 16:21:29 +0200 Subject: 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. --- t/test3.chn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/test3.chn') 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} -- cgit v1.2.3