Skip to content

Commit

Permalink
make else from code work from hygienic macros #296
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 31, 2024
1 parent e25ad66 commit abfce87
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
7 changes: 5 additions & 2 deletions lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,11 @@
`(begin
,@expression))
,(if (and (pair? rest)
(or (eq? (caar rest) true)
(eq? (caar rest) 'else)))
(let ((x (caar rest)))
(or (eq? x true)
(and (symbol? x)
(or (eq? x 'else)
(eq? (--> (new lips.LString (x.literal)) (cmp "else")) 0))))))
`(begin
,@(cdar rest))
(if (not (null? rest))
Expand Down

0 comments on commit abfce87

Please sign in to comment.