<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
I'm using the compiler by running the gsc executable.<br>
<br>
Where do I inject the code, and for what port?<br>
<br>
I tried using (current-input-port), and executing the readtable-set!
from an expanding macro using (current-input-port), that's all I can
think of; but it doesn't apply #. .<br>
<br>
Does somebody have this working? What is the port for the
compiler's input stream when running gsc? And how/where/when should
I execute this code to modify the readtable before the .scm file(s)
are run?<br>
<br>
Thanks,<br>
Matt<br>
<br>
<br>
<br>
<br>
On 8/27/2011 7:42 AM, Mikael wrote:
<blockquote
cite="mid:CACbx-M_y+5+KG3XM4nELX1iecEEf_BHjo=YmOaoHa1PgfGEAow@mail.gmail.com"
type="cite">Hi Matt,
<div><br>
</div>
<div>For sure you can do this, just track down the port that is
(read) from on load and compile-file and perform the setting on
it. Maybe you could even make a parameterized global variable
config-sourcecode-port procedure so you can configure this as
you go - and btw maybe that's already in there.
<div>
<br>
</div>
<div>Did you say you want #. switched on for all or parts of
your scm file? The earlier ought be more straightforward to
implement.</div>
<div><br>
</div>
<div>Let the ML know what you got to.</div>
<div><br>
</div>
<div>
Brgds,</div>
<div>Mikael<br>
<br>
<div class="gmail_quote">2011/8/27 Matt Lamari <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:matt.lamari@gmail.com">matt.lamari@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I want to know if #. or something equivalent is available
when<br>
compiling .scm files. That is, the ability to tell the
reader to<br>
directly eval a form at read time.<br>
<br>
I've been shown this:<br>
<br>
<a moz-do-not-send="true"
href="http://dynamo.iro.umontreal.ca/%7Egambit/wiki/index.php?title=Documentation:Procedure_readtable-eval-allowed?-set"
target="_blank">http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php?title=Documentation:Procedure_readtable-eval-allowed?-set</a><br>
<br>
But am not sure how this should be applied to reading
compiled code, if<br>
it's applicable, if it's possible.<br>
<br>
If this code or something like it should be used to
influence the<br>
reader, where should it go?<br>
<br>
What's the best way to get the ability to have #. in the
middle of<br>
compiled .scm?<br>
<br>
<br>
Thanks,<br>
Matt<br>
<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a moz-do-not-send="true"
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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gambit-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a>
<a class="moz-txt-link-freetext" href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a>
</pre>
</blockquote>
<br>
</body>
</html>