You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown/pages/ulisp_howto/macros.md
+54-12Lines changed: 54 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,41 @@ Title: Adding Macros to uLisp
2
2
3
3
The Lisp form `:::lisp 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
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.*
5
+
*EDIT Feb. 28: 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.*
6
+
7
+
*EDIT Nov. 24: again, corrected some more errors... my sincerest apologies for this undue insanity!*
6
8
7
9
## Part 1 - the Functions
8
10
9
-
1. Add these functions and their table entries:
11
+
1. Add the `MACRO` sentinel symbol, right after `LAMBDA` in the table and builtins:
0 commit comments