diff options
author | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-05-16 18:31:28 +0200 |
---|---|---|
committer | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-05-16 18:31:28 +0200 |
commit | f19998f7fd9db2bd1ed4eb80ea1744a013b166fa (patch) | |
tree | f010bb2afd58bcddfc56b672b8f1532bfa1b446a /t | |
parent | d917f41beca176b8f2b682ac3a2c25b148752b71 (diff) |
Define types for primitives instead of using lists
* src/parser.lisp: Add alias for shorting chain calls. First symbol may be
outside chain.
* src/types.lisp: Remove specialp from closure class
Diffstat (limited to 't')
-rw-r--r-- | t/test3.chn | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/t/test3.chn b/t/test3.chn index 42a0b97..2fbdeab 100644 --- a/t/test3.chn +++ b/t/test3.chn @@ -1,3 +1,9 @@ -{@define}{@define-function}{{@syntax}{@name @args @body}{{@define}{@name}{{@lambda}{@args}{@body}}}}% -{@define-function}{@foo}{@a @b}{hola @b}% -{@foo}{mundo}{casa} +@define{@define-function}{@syntax{@name @args @body}{@define{@name}{@lambda{@args}{@body}}}}% +@define-function{@foo}{@a @b}{hola @b}% +@foo{mundo}{casa} +@define{@section}{@lambda*{@title}{@gp{@quote{@section}}}{@title@siblings@title +}}% +@section{Hello World} +hola +@section{Good Bye World} +chao |