prettyprint struct-arrays

Joe Groff 2009-08-26 18:22:51 -05:00
parent f9d989b1ae
commit 5a3ee347aa
1 changed files with 12 additions and 1 deletions

View File

@ -1,2 +1,13 @@
USING: struct-arrays ;
! (c)Joe Groff bsd license
USING: accessors arrays kernel prettyprint.backend
prettyprint.custom sequences struct-arrays ;
IN: struct-arrays.prettyprint
M: struct-array pprint-delims
drop \ struct-array{ \ } ;
M: struct-array >pprint-sequence
[ >array ] [ class>> ] bi prefix ;
M: struct-array pprint* pprint-object ;