[plt-scheme] Dr Scheme variable at startup problem
Thanks. I'll look into this. I'm using the Swindle language already,
so I'll just see if it's possible to just extend the language. Thanks
for the good idea!
Jay
On 1/16/07, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> On Tue, 16 Jan 2007, Jay Kint wrote:
>
> > I'm trying to add feature expressions to DrScheme for my own use. So
> > far, I have the reader macros working, but I can't seem to get the
> > variable *features* to be visible at start up.
>
> Hi Jay,
>
> Would it be possible to do what you want with a "module language" instead?
>
> http://download.plt-scheme.org/doc/360/html/tools/tools-Z-H-2.html#node_sec_2.1.1
>
>
> For example:
>
> ##############################################################
> mithril:~/work dyoo$ ls example-lang
> info.ss my-language.ss
> mithril:~/work dyoo$
> mithril:~/work dyoo$ cat example-lang/info.ss
> (module info (lib "infotab.ss" "setup")
> (define name "example language")
> (define drscheme-language-modules
> (list "my-language.ss"))
> (define drscheme-language-positions
> (list (list "custom language"
> "example language"))))
>
> mithril:~/work dyoo$
> mithril:~/work dyoo$ cat example-lang/my-language.ss
> (module my-language mzscheme
> (provide (all-from mzscheme)
> *features*)
>
>
> (define *features* '(dr scheme)))
> ##############################################################
>
>
>
> One way to install this into DrScheme is to do:
>
> #####################################################################
> mithril:~/work dyoo$ planet -a test example-lang.plt 1 0 example-lang
> mithril:~/work dyoo$ setup-plt -P test example-lang.plt 1 0
> #####################################################################
>
> after which the example language should show up under the Languages menu
> in DrScheme.
>
>
>
> Best of wishes!
>