2008-02-11 14:50:29 -05:00
|
|
|
! Copyright (C) 2007, 2008 Slava Pestov.
|
2007-09-20 18:09:08 -04:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: namespaces math words kernel alien byte-arrays
|
|
|
|
hashtables vectors strings sbufs arrays bit-arrays
|
2008-03-29 04:34:48 -04:00
|
|
|
float-arrays quotations assocs layouts classes.tuple.private ;
|
2007-09-20 18:09:08 -04:00
|
|
|
|
|
|
|
BIN: 111 tag-mask set
|
|
|
|
8 num-tags set
|
|
|
|
3 tag-bits set
|
|
|
|
|
2008-03-26 04:57:48 -04:00
|
|
|
20 num-types set
|
2007-09-20 18:09:08 -04:00
|
|
|
|
|
|
|
H{
|
|
|
|
{ fixnum BIN: 000 }
|
|
|
|
{ bignum BIN: 001 }
|
|
|
|
{ tuple BIN: 010 }
|
|
|
|
{ object BIN: 011 }
|
|
|
|
{ ratio BIN: 100 }
|
|
|
|
{ float BIN: 101 }
|
|
|
|
{ complex BIN: 110 }
|
|
|
|
{ POSTPONE: f BIN: 111 }
|
|
|
|
} tag-numbers set
|
|
|
|
|
|
|
|
tag-numbers get H{
|
|
|
|
{ array 8 }
|
|
|
|
{ wrapper 9 }
|
2008-01-30 00:13:47 -05:00
|
|
|
{ float-array 10 }
|
|
|
|
{ callstack 11 }
|
2007-09-20 18:09:08 -04:00
|
|
|
{ string 12 }
|
2008-02-11 14:50:29 -05:00
|
|
|
{ bit-array 13 }
|
2007-09-20 18:09:08 -04:00
|
|
|
{ quotation 14 }
|
|
|
|
{ dll 15 }
|
|
|
|
{ alien 16 }
|
|
|
|
{ word 17 }
|
|
|
|
{ byte-array 18 }
|
2008-03-26 04:57:48 -04:00
|
|
|
{ tuple-layout 19 }
|
2007-09-20 18:09:08 -04:00
|
|
|
} union type-numbers set
|