Tue Dec 18 17:54:50 CET 2007
ctxt-stx v [src-stx-or-list prop-stx cert-stx])
converts the S-expression v to a syntax object, using syntax objects
already in v in the result. Converted objects in v are given the
lexical context information of ctxt-stx and the source-location
information of src-stx-or-list. If v is not already a syntax object,
then the resulting immediate syntax object it is given the properties
(see section 12.6.2) of prop-stx and the inactive certificates (see
section 12.6.3) of cert-stx. Any of ctxt-stx, src-stx-or-list,
prop-stx, or cert-stx can be #f, in which case the resulting syntax
has no lexical context, source information, new properties, and/or
If src-stx-or-list is not #f or a syntax object, it must be a list of
(list source-name-v line-k column-k position-k span-k)
where source-name-v is an arbitrary value for the source name; line-k
is a positive, exact integer for the source line, or #f; and column-k
is a non-negative, exact integer for the source column, or #f;
position-k is a positive, exact integer for the source position, or
#f; and span-k is a non-negative, exact integer for the source span,
or #f. The line-k and column-k values must both be numbers or both be
#f, otherwise the exn:fail exception is raised.
why do i run into the need to have a port object that can put back a
character? scheme needs this too, so maybe the port objects need to
it's the other way around: scheme ports support a peek operation.
looks like it works now, and the code looks clean.
next: create syntax objects.
this seems to be rather straightforward by using
'port-count-lines-enabled' and 'port-next-location'.
ok. seems to work now.