[plt-dev] defmodulelang and planet

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jul 29 09:16:14 EDT 2009

At Fri, 26 Jun 2009 19:14:18 +0800, Chongkai Zhu wrote:
> How do I defmodulelang a planet language? I tried
> 
> @defmodulelang[(planet id)]
> 
> but the result was
> 
> #lang (planet id)
> 
> which has an extra pair of parenthesis.

In SVN, `defmodulelang' is now extended to let you separate the
language name from the module path, where the language name is
arbitrary content:

 @(define planet-id-lang @scheme[@#,schememodname[planet] who/what])

 @defmodulelang[@planet-id-lang #:module-path (planet who/what)]

> Also, will
> @schememod[planet id]
> 
> link "id" to the "defmodulelang" part?

There's a new `schememodlink' that similarly separates the module path
from the hyperlinked content:

  @schememodlink[(planet who/what)]{@planet-id-lang}




Posted on the dev mailing list.