2009-07-07 16:01:30 -04:00
|
|
|
! Copyright (C) 2008, 2009 Slava Pestov.
|
2008-01-28 19:15:21 -05:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: arrays kernel kernel.private math sequences
|
2008-12-08 15:58:00 -05:00
|
|
|
sequences.private growable bit-arrays prettyprint.custom
|
2009-07-07 15:34:08 -04:00
|
|
|
parser accessors vectors.functor classes.parser ;
|
2008-01-28 19:15:21 -05:00
|
|
|
IN: bit-vectors
|
|
|
|
|
2009-07-07 15:34:08 -04:00
|
|
|
<< "bit-vector" create-class-in \ bit-array \ <bit-array> define-vector >>
|
2008-04-19 23:56:28 -04:00
|
|
|
|
2009-03-21 02:27:50 -04:00
|
|
|
SYNTAX: ?V{ \ } [ >bit-vector ] parse-literal ;
|
2008-04-19 23:56:28 -04:00
|
|
|
|
2009-07-07 16:01:30 -04:00
|
|
|
M: bit-vector contract 2drop ;
|
2008-04-20 01:18:27 -04:00
|
|
|
M: bit-vector >pprint-sequence ;
|
2008-04-19 23:56:28 -04:00
|
|
|
M: bit-vector pprint-delims drop \ ?V{ \ } ;
|
2008-09-06 04:23:54 -04:00
|
|
|
M: bit-vector pprint* pprint-object ;
|