Discussion:
Syntax form
Tommi Höynälänmaa
2017-08-21 12:22:45 UTC
Permalink
Where are (syntax x) forms compiled with the old vector based
implementation of syntax objects (guile 2.0.11 or 2.2.0)? The
structure type for the syntax objects is defined in ice-9/psyntax.scm
but I can't find code for the syntax form.

-Tommi Höynälänmaa
Mark H Weaver
2017-08-23 05:13:05 UTC
Permalink
Post by Tommi Höynälänmaa
Where are (syntax x) forms compiled with the old vector based
implementation of syntax objects (guile 2.0.11 or 2.2.0)? The
structure type for the syntax objects is defined in ice-9/psyntax.scm
but I can't find code for the syntax form.
'syntax' is a core form of the psyntax macro expander. In both 2.0 and
2.2, the code to handle expansion of 'syntax' forms is in psyntax.scm,
beginning with:

(global-extend 'core 'syntax

Although in 2.2 the text above is split between two lines:

(global-extend
'core 'syntax

Mark

Loading...