Hello,

I have a meta-language called `quote-bad`, which takes a language as an 
argument like at-exp does. It uses `make-meta-reader` from 
`syntax/module-reader`, just like at-exp. So, `#lang quote-bad racket` would be 
a language based on racket.

I want programs like this:

#lang quote-bad racket
'(a b c)

To behave roughly as if they were written like this:

#lang racket
(require quote-bad/quote-bad)
'(a b c)

Is there any way to do this from a meta-language?

If it's not possible to add the bindings, I actually need slightly less than 
that, because the bindings don't need to be available. All I need is for it to 
do the equivalent of

#lang quote-bad racket
(require (only-in quote-bad/quote-bad)) ; doesn't actually import any bindings
'(a b c)

In other words, I need to be able to declare a dependency on 
`quote-bad/quote-bad`. Without that dependency, I get an error like this:

.../quote-bad/reader.rkt:36:46: require: namespace mismatch;
 reference to a module that is not available
  reference phase: 0
  referenced module: ".../quote-bad/quote-bad.rkt"
  referenced phase level: 0 in: quote


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to