[plt-scheme] define-datatype error

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Fri Feb 18 19:43:14 EST 2005

m n wrote:

> Hi:
> 
>    I typed the following statement in DrScheme 101

101 ?

The current version is 209.

> (define-datatype expression expression?
>   (lit-exp    (datum number?))
>   (var-exp    (id symbol?))
>   (lambda-exp (id symbol?)
>               (body expression?))
>   (app-exp    (rator expression?)
>               (rand expression?)))
> 
> I got the following error:  reference to undefined identifier: define-datatype
> How can I fix this error? Thanks.

Did you remember to change the language to EOPL ?

-- 
Jens Axel Søgaard




Posted on the users mailing list.