<br><div class="gmail_quote">On Mon, Jul 14, 2008 at 1:50 PM, Sam TH <<a href="mailto:samth@ccs.neu.edu">samth@ccs.neu.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It should be fairly easy to write a language like `s-exp' but where<br>
the reader and the language are both specified. Invocations would<br>
look something like this:<br>
<br>
#lang custom (lib "my-reader.ss") (lib "my-lang.ss")<br>
..code goes here..<br>
</blockquote><div><br>Agreed - it should be fairly straight forward. But as <span style="font-family: courier new,monospace;">`#lang`</span> cannot take a <span style="font-family: courier new,monospace;">`(planet ...)`</span> module spec - the language <span style="font-family: courier new,monospace;">custom</span> will have to be built-in instead of user supplied, otherwise anyone doing this will have to manually copy the <span style="font-family: courier new,monospace;">custom</span> lib to <span style="font-family: courier new,monospace;">collects-dir</span> with each upgrade. <br>
<br>These solutions came about because of the restrictions placed on <span style="font-family: courier new,monospace;">`#lang`</span>. Are there technical difficulties for <span style="font-family: courier new,monospace;">`#lang`</span> to handle <span style="font-family: courier new,monospace;">`(planet ...)`</span>? <br>
<br>The nice thing of <span style="font-family: courier new,monospace;">`#lang`</span> versus <span style="font-family: courier new,monospace;">`#reader`</span> is of course that <span style="font-family: courier new,monospace;">`#lang`</span> denotes the use of a language... <br>
<br>Thanks,<br>yc<br><br></div></div>