Seems like you need at least one newline at the end of the file -- put an empty line or two after your printf("Hello") and then it should work.<div><br><div class="gmail_quote">On Wed, Jul 20, 2011 at 6:30 PM, Grant Rettke <span dir="ltr"><<a href="mailto:grettke@acm.org">grettke@acm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Wed, Jul 20, 2011 at 4:10 PM, Greg Hendershott<br>
<<a href="mailto:greghendershott@gmail.com">greghendershott@gmail.com</a>> wrote:<br>
>> define factorial(n)<br>
>> if {n <= 1}<br>
>> 1<br>
>> {n * factorial{n - 1}}<br>
><br>
> Wouldn't it need to be something like:<br>
><br>
> define( factorial(n)<br>
> if {n <= 1}<br>
> 1<br>
> {n * factorial{n - 1}} )<br>
><br>
> ?<br>
><br>
> That is, `define' itself needs some sort of handling, whether sweet or sour?<br>
<br>
I tried from the docs:<br>
<br>
#lang planet asumu/sweet racket<br>
<br>
printf("Hello")<br>
<br>
and got the error:<br>
<br>
application: bad syntax (illegal use of `.') in: (#<eof> . #<eof>)<br>
<br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>
</div>