Linus
3908019bbc
Added some tests.
...
Fixed some things I noticed when testing the tests.
2021-03-22 19:30:09 +01:00
Linus
5847bd21d4
Fixed :final and make to, by => :to :by
...
I had a bug. I had an inconsistency. Don't worry. All is fixed.
2021-03-18 12:41:39 +01:00
Linus
f6d7b01793
Refactored for-clauses to take :for for better error reporting
...
At least in the future
2021-03-16 19:30:08 +01:00
Linus
172d0aa180
Changed the loop protocol for :acc clauses
...
The third clause (the "check" clause) now breaks the entire
iteration for :acc clauses instead of just exiting the current subloop.
This is much saner, and was immediately usable in vectoring.
2021-03-11 22:18:29 +01:00
Linus
79b7c4eedd
Clarified expansion
...
The expansion of (loop ...) without subloops is now the same as loop
with subloops.
2021-03-11 14:35:07 +01:00
Linus
7b3814c430
More parentheses
...
I have changed my mind about the clause forms. They should, with the
exception of :subloop, be parethesised: :when test => (:when test).
2021-02-18 21:19:12 +01:00
Linus
a545c1cbd7
Fix a bug where simple loops did not bind let bindings correctly
...
add check whether a loop clause exists to avoid the ultra-shit errors that happen if you
accidentally write (up-form ...)
2021-02-09 22:02:40 +01:00
Linus
d48ed19e43
Fix the previous commit. Now also the simple loops are ensured to execute once if no for-clauses are given.
...
Instead of throwing a syntax-error...
2021-01-28 20:37:05 +01:00
Linus
685fe86f36
Loops without any clauses now run the body at least once.
...
Small updates to readme.
2021-01-28 20:18:15 +01:00
Linus
06a11fc892
Modularized the code
...
Everything in goof-impl.scm is portable (r7rs) syntax-rules. The non-portable parts
, most notably the let-kw-form macro is in the module definition goof.scm.
2021-01-28 20:01:24 +01:00