[plt-scheme] define-datatype error

From: m n (monitor10 at gmail.com)
Date: Fri Feb 18 19:32:41 EST 2005


   I typed the following statement in DrScheme 101:

(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.

Posted on the users mailing list.