[gambit-list] Some questions about reader in Gambit

Christian Jaeger chrjae at gmail.com
Sun Dec 13 14:37:20 EST 2009


> 1. Could you please in two words explain source-location data?

Check lib/_eval.scm

Example:

(##define-syntax
 compile-time
 (lambda (stx)
   (##sourcify-deep
    (apply
     (lambda (_macroname . body)
       (eval `(begin
                , at body)))
     (##source-code stx))
    stx)))

> 2. Do interpreter and compiler use same method of file reading?
>   Same readtable?

Dunno.

> 3. Qi constructions after Qi-reader are just like scheme ones, but
> before they are often different. For instance:
> Qi: [ A B | C ]
> after qi-reader:
> (cons A (cons B (cons C ())))
> How can I integrate Qi reader into Gambit to slightly transform input
> with minimal effort?

Dunno. The first question would be, how is the Qi reader written in
the original implementation?

Christian.



More information about the Gambit-list mailing list