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.

On Wed, Jul 20, 2011 at 6:30 PM, Grant Rettke <[email protected]> wrote:

> On Wed, Jul 20, 2011 at 4:10 PM, Greg Hendershott
> <[email protected]> wrote:
> >> define factorial(n)
> >>  if {n <= 1}
> >>    1
> >>    {n * factorial{n - 1}}
> >
> > Wouldn't it need to be something like:
> >
> > define( factorial(n)
> >  if {n <= 1}
> >   1
> >   {n * factorial{n - 1}} )
> >
> > ?
> >
> > That is, `define' itself needs some sort of handling, whether sweet or
> sour?
>
> I tried from the docs:
>
> #lang planet asumu/sweet racket
>
> printf("Hello")
>
> and got the error:
>
> application: bad syntax (illegal use of `.') in: (#<eof> . #<eof>)
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to