Skip to content

Commit b16a44b

Browse files
fix errors in macro guide
1 parent ec8e47d commit b16a44b

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

docs/pages/ulisp_howto/macros.html

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

markdown/pages/ulisp_howto/macros.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Title: Adding Macros to uLisp
22

3-
The Lisp form `:::list defmacro` allows for more powerful syntactic constructs.
3+
The Lisp form `:::list defmacro` allows for more powerful syntactic constructs. Note that this does not include backquote support -- there is a [separate page]({filename}backquote.md) for that.
4+
5+
*EDIT: In response to [all of the confusion](http://forum.ulisp.com/t/what-would-you-like-to-see-in-ulisp-in-2024/1350/36) I seem to have caused by posting this error-ridden guide, I have done my best to correct all of the errors. Hopefully, now it should be possible to to directly follow this guide from a vanilla uLisp to be able to add macros. I apologize for any confusion, compiler problems, and crashes caused by my sloppiness.*
46

57
## Part 1 - the Functions
68

@@ -72,10 +74,10 @@ The Lisp form `:::list defmacro` allows for more powerful syntactic constructs.
7274
```
7375

7476
```cpp
75-
{ stringmacro, NULL, MINMAX(OTHER_FORMS, 1, UNLIMITED), docmacro },
76-
{ stringdefmacro, sp_defmacro, MINMAX(SPECIAL_FORMS, 2, UNLIMITED), docdefmacro },
77-
{ stringmacroexpand1, fn_macroexpand1, MINMAX(FUNCTIONS, 1, 1), docmacroexpand1 },
78-
{ stringmacroexpand, fn_macroexpand, MINMAX(FUNCTIONS, 1, 1), docmacroexpand },
77+
{ stringmacro, NULL, 0017, docmacro },
78+
{ stringdefmacro, sp_defmacro, 0327, docdefmacro },
79+
{ stringmacroexpand1, fn_macroexpand1, 0111, docmacroexpand1 },
80+
{ stringmacroexpand, fn_macroexpand, 0111, docmacroexpand },
7981
```
8082

8183
2. Wire up the evaluator to expand the macros:

0 commit comments

Comments
 (0)