4 ms·
It looks like this (e.g. `#2dcond`) implements a way to directly embed other languages in a racket file [0] and avoids the problems encountered when trying to d
by hyperion2010 9y ago
It looks like this (e.g. `#2dcond`) implements a way to directly embed other languages in a racket file [0] and avoids the problems encountered when trying to do it using the `#reader` syntax [1] in a source file. Essentially letting you have multiple readtables in a file (probably not nestable though). I could be wrong about this (need to look more carefully when I have more time), but nonetheless could allow direct embedding of completely alternate syntax with the right setup.
[0] https://github.com/racket/2d/blob/master/2d-lib/private/readtable.rkt https://github.com/racket/2d/blob/master/2d-lib/private/read...
[1] https://docs.racket-lang.org/guide/hash-reader.html https://docs.racket-lang.org/guide/hash-reader.html
- gcr 9y agoThis seems similar to the way the at-exp language is implemented. at-exp adds support for S-expressions based on braces, and is the foundation of the Scribble markup language.