<br><div class="gmail_quote">On Mon, Jul 14, 2008 at 1:13 PM, Anton Tayanovskyy &lt;<a href="mailto:anton.tayanovskyy@gmail.com">anton.tayanovskyy@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
From the manual:<br>
<br>
A sequence #lang 〈name〉 is equivalent to #reader 〈name〉/lang/reader<br>
<br>
<a href="http://docs.plt-scheme.org/reference/reader.html#%28part._parse-reader%29" target="_blank">http://docs.plt-scheme.org/reference/reader.html#(part._parse-reader)</a><br>
<br>
So you can use #lang instead of #reader.<br>
</blockquote><div><br>Yes - except <span style="font-family: courier new,monospace;">`#lang`</span> cannot handle all module spec such as <span style="font-family: courier new,monospace;">`lib`</span> or <span style="font-family: courier new,monospace;">`planet`</span> module path.&nbsp; <span style="font-family: courier new,monospace;">`s-exp`</span> will use the next datum as the module path, but AFAICT <span style="font-family: courier new,monospace;">`s-exp`</span> doesn&#39;t allow the use of custom reader (which my custom language requires), and hence I ended up having to use <span style="font-family: courier new,monospace;">#reader</span> and hack my own s-exp module if I want to use <span style="font-family: courier new,monospace;">`(planet ...)`</span> as the module resolver. <br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Not sure what your exact problem is, but I guess you can always hack<br>
the s-exp/lang/reader.ss module to suit your needs, making, for<br>
instance, a my-s-exp/lang/reader.ss module. </blockquote><div><br>That&#39;s what I did, thanks.&nbsp; But in order to use <span style="font-family: courier new,monospace;">`(planet ...)`</span> path resolver -  it appears I need to use <span style="font-family: courier new,monospace;">`#reader`</span> instead of <span style="font-family: courier new,monospace;">`#lang`</span>.&nbsp; Hence I&#39;m interesting in seeing <span style="font-family: courier new,monospace;">`#lang`</span> support more module specs.&nbsp; <br>
<br>Thanks,<br>yc<br><br></div></div>