-
`define-syntax` を実装する。
## 設計
1. パースのマクロの展開を同時に行う。
- R5RS では、`define-syntax` はトップレベルにしか置けないという制約があるので、パース前に `define-syntax` を拾ってきて解釈することもできるが、R7RS ではトップレベル以外にも置くことができ、場所によってマクロのスコープが変わる。R7RS に将来的に対応…
-
In SFRI-46:
(define-syntax fake-begin
(syntax-rules ()
((fake-begin ?body ... ?tail)
(let* ((ignored ?body) ...) ?tail))))
(fake-begin
(DISPLAY "Hello"))
fake-begin should wor…
trb-a updated
3 years ago
-
Currently, `(read (open-input-string "'"))` yields `(quote #)`.
In contrast, 6.13.2. of R7RS says: “If an end of file is encountered after the beginning of
an object’s external representation, but th…
-
def.sld contains
```
(define-library (def)
(import (scheme base))
(include "def.scm"))
```
and def.scm contains
```
(define reverse-rconj
(case-lambda
(() '())
((lst) ls…
-
```
$ ol
You see a prompt
> (define-syntax foo
(syntax-rules ()
((_ 1 2) (_ 2 1))
((_ 2 1) 32)))
foo
> (foo 1 2)
What is '_'?
Will have to check what the specs have to say a…
-
**Reported by: pnkfelix on Mon Mar 5 13:41:41 2007**
An email from Aziz.
(We should check if these results are consistent across platforms, or if its only a problem on IasnLarceny...)
```
On Mar 5,…
-
**Description**:
The following program is a naive implementation of [AOC 2019](https://adventofcode.com/2019) day 3, that finds (axis-aligned) line intersections using hash table keys as a bitmap:
…
-
This is important to do to make Black Hole easier to use for people other than me.
A draft of a proposal for a version roadmap:
0.1: [Syntactic tower](http://github.com/pereckerdal/blackhole/issues#…
-
It would be nice to have the scheme.org menu on the individual cookbook pages. I'm afraid I cannot test this, but would something like the following hand-written changes to www.scm work?
First, def…
ghost updated
2 years ago
-
I tried some backquote forms. Regular backquotes work great, nested (double) backquote forms don't seem to work, see the examples below.
Nested backquotes are quite a bit of work to get right, I wo…