Scheme reader with source-location information.This library provides a reader for external representations of
Scheme objects compatible with the R7RS syntax. It has two
advantages over the standard reader in
Firstly, it accurately reports parsing errors by raising a
continuable exception, so that parsing can be continued after
reporting the error. Secondly, all the parsed datums are provided
with exact source locations by returning the parsed datums wrapped
in syntax objects as defined by the library
(rapid syntax). If an exception handler handling a reader error returns, the reader continues and tries to parse the next datum.
portwith position initialized to the start of a text file (line number 0 and column number 1), and case-insensitivity set according to
objis a source port, and
source-portwrapped in a syntax object.
pathnamewith case-insensitivity flag set to
Contextis used for syntax error objects when raised.
filenames in the vinicity of the syntax object
contextwith case-insensitivity flag set to
ci?. Prepends this list in reverse order to the list
bodyand returns the results. The list
filenamesis a list of syntax objects each wrapping a string. A syntax error is raised if any syntax object in
filenamesdoes not wrap a string.
read-files-reversecan be customized. It is expected that the new binding is a procedure with the same signature and semantics as