[plt-dev] scribble support for HtDP-style data definitions?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Feb 13 17:46:02 EST 2009

Is there a good way to typeset HtDP-style data definitions in
Scribble? I've just been doing this:

@verbatim[#<<---
;; a state is either:
;;   - 'playing
;;   - 'cat-won
;;   - 'cat-lost
---
]

@verbatim[#<<---
;; a board is
;;  (listof cell)
---
]

@verbatim[#<<---
;; a cell is
;; (make-cell (make-posn int[0-board-size]
;;                       int[0-board-size])
;;            boolean)
---
]

Robby


Posted on the dev mailing list.