[gambit-list] Line numbers in custom reader
Marc Feeley
feeley at iro.umontreal.ca
Wed Jul 31 11:01:13 EDT 2013
On 2013-07-28, at 5:49 AM, Hendrik Boom <hendrik at topoi.pooq.com> wrote:
> I guess now I get to ask what ##source?, ##source-code, and ##source are.
A "source" object represents a source S-expression tagged with location information. A source object has a source "code" (extracted with the ##source-code procedure) and a source "location" (extracted with the ##source-locat procedure). The reader (the read procedure) can be configured to return a source object for the datum that is read rather that the usual representation. For an example, see the end of this message:
https://mercure.iro.umontreal.ca/pipermail/gambit-list/2013-February/006424.html
Marc
More information about the Gambit-list
mailing list