#lang plai is the language of the first edition. The second edition, which you are using based on your example, uses a different language:
http://cs.brown.edu/courses/cs173/2012/book/Introduction.html#(part._.The_.Language_of_.This_.Book) On Sun, Apr 14, 2013 at 9:48 AM, Manfred Lotz <[email protected]> wrote: > Hi there, > I had a look at the PLAI book and tried out one of the first examples: > > #lang plai > > > (define-type MisspelledAnimal > [caml (humps : number)] > [yacc (height : number)]) > > (caml 2) > (yacc 3.4) > > However, I get: > plaitest.rkt:5:17: define-type: unexpected term > at: number > in: (define-type MisspelledAnimal (caml (humps : number)) (yacc > (height : number))) context...: > > /home/manfred/racket/lib/racket/collects/syntax/parse/private/runtime-report.rkt:31:0 > /home/manfred/racket/lib/racket/collects/racket/private/modbeg.rkt:46:4 > standard-module-name-resolver > > > I have no glue what's going wrong as I thought that language plai > supports the stuff. Must I define the number type? > > > -- > Thanks, > Manfred > > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users -- Jay McCarthy <[email protected]> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93 ____________________ Racket Users list: http://lists.racket-lang.org/users

