[gambit-list] Line numbers in custom reader

Mikael mikael.rcv at gmail.com
Sat Jul 27 20:18:39 EDT 2013

There is a format for this.

Once you deciphered it please document it here on the list.

Also Black Hole works with it. I guess the easiest thing is to
follow |load|'s code path. and see what structure it actually passes on to
eval or its functional equivalent.

(Also a route is using source objects.)


2013/7/28 Hendrik Boom <hendrik at topoi.pooq.com>

> So I'm writing a custom parser so that I can read in code written in
> another language and translate it into Gambit (of course, not to textual
> S-expression, but consing together a data structure to feed to the Gambit
> interpreter or compiler).
> How to I attach line numbers to the consed code so that the interpreter
> will be able to write line numbers from the original source code in error
> messages?
> -- hendrik
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20130728/ad43b21b/attachment.html 

More information about the Gambit-list mailing list