[plt-scheme] Re: how to specify the language "PLAI Scheme" in PLT Scheme in Emacs

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Mar 4 22:58:40 EST 2009

On Mar  4, Arjun Guha wrote:
> $ ./mzscheme
> Welcome to MzScheme v4.1.4 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.
> > #lang typed-scheme
> 
> (two minutes later, nothing)
> 
> This may be a bug / unintended use case.  However, "mzscheme -i -l
> plai" should work fine.

`#lang' starts the reader for the specified language, which will read
a *whole* file and return a module expression.  When you use it on the
repl it will sit and do nothing because the reader is waiting to see
the end of the file.  For example, from a unix repl, you can enter:

  > #lang scheme
  1
  2
  3
  <<<hit ctrl+d>>>
  > 

After that you can (require 'page) to require that module.  (`page' is
the default name for #lang-read modules that don't come from a file.)

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


Posted on the users mailing list.