Say I have a modestly complex set of data contained in a standard Racket structure, e.g. (struct: Data ([...])). I'd like to define some sort of specialized pretty print (visualization) capability to be used withing DrRacket at the REPL level.<div>
<br></div><div>So I'm working with some code in Dr Racket in the REPL.</div><div><br></div><div>> (define data (Data ....)) ;; create a structure of data</div><div><br></div><div>> (pretty-visualize data) ;; Either pops up some dialog with text/graphical visualization or is rendered by the REPL immediately below.</div>
<div>==================</div><div>| Text </div><div>| or 2-d Canvas </div><div>| rendering here.</div><div>|</div><div>|</div><div>==================</div><div><br></div><div>> |</div><div><br></div><div>Say something along the lines one can see in the Professional Tables here.</div>
<div><a href="http://en.wikibooks.org/wiki/LaTeX/Tables">http://en.wikibooks.org/wiki/LaTeX/Tables</a></div><div><br></div><div>I've been poking around in the DrRacket manual but haven't found any place to gain traction on something like this. Any pointers on here I should start reading?</div>
<div><br></div><div>Thanks in advance.</div><div><br></div>