Yesterday, Scott Klarenbach wrote:
> 
> I assumed that #lang at-exp "my-lang.rkt" should work, since I'm
> wanting to use at-exp syntax with "my-lang.rkt" semantics.  I'll
> keep digging and I'm sure it will click.

The way to think about it is that the `at-exp' language adds at
expressions to some other (read-table-based) language -- and `at-exp
"foo.rkt"' doesn't really have a specification of a reader.  So you
use `sexp' to set up the base reader, then extend it with the at
expressions.


> Finally, as a quick pointer, is there a simple way to change #lang
> at-exp s-exp "my-lang.rkt" into #lang my-lang?  Or if I want this,
> do I need to implement my own reader that internally uses at-exp 's
> read-syntax and read functions?

Yes.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to