There is a format for this.<div><br></div><div>Once you deciphered it please document it here on the list.</div><div><br></div><div>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.</div>

<div><br></div><div>(Also a route is using source objects.)</div><div><br></div><div>Mikael<br><br><div class="gmail_quote">2013/7/28 Hendrik Boom <span dir="ltr"><<a href="mailto:hendrik@topoi.pooq.com" target="_blank">hendrik@topoi.pooq.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I'm writing a custom parser so that I can read in code written in<br>
another language and translate it into Gambit (of course, not to textual<br>
S-expression, but consing together a data structure to feed to the Gambit<br>
interpreter or compiler).<br>
<br>
How to I attach line numbers to the consed code so that the interpreter<br>
will be able to write line numbers from the original source code in error<br>
messages?<br>
<br>
-- hendrik<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</blockquote></div><br></div>