From: Andrew Wilcox <schematics-dev@an...> - 2005-05-05 12:45:48
> SISC does not have source code location information, so text-ui
> prints "unknown" for failed test cases.
Tony Garnock-Jones wrote:
> It should do - look in the manual for the configuration parameter
> "emit-annotations", which if set to #t should propagate location
> information correctly.
EMIT-ANNOTATIONS causes the SISC Scheme *reader* to include source
file location information. However the location information is *not*
propagated by the macro system. Thus after macro expansion, only
source that didn't go through macro expansion still has location
Which, I would guess, is why PLT has the various macro source location
extensions such as SYNTAX/LOC and so on. Macros combine code from two
different places (the macro body and the source being expanded), so
you need some way to say which source code location to give to the
But still... might it be possible for SchemeUnit to capture location
information in SISC? Could be. The original syntax object passed to
a macro transformer has location information; the information is not
present in pattern variables after pattern matching by SYNTAX-RULES or
SYNTAX-CASE. So you might be able to capture location information, if
you get to it early enough.
Or... port PLT's macro expansion system to SISC!
Get latest updates about Open Source Projects, Conferences and News.