|
TYPE
function.object | type | object | type | |
(nan) | 0 | 5 | ||
integer | 1 | list | 6 | |
real | 2 | array | 7 | |
3 | complex | 8 | ||
string | 4 | poly | 9 |
\1 value
value
\1 value M2
HEX syntax \1 value M1
123
is stored like this \1 123
, or 123
#11001
is stored like this \1 19 M2
(binary of 19 is 11001)0x123
is stored like this \1 291 M1
\2 value
value
\2 value M4
123.48
is stored like this \1 123.48
, or 123.48
1:30:00
is stored like this \1 1.5 M4
\4 n1 n2 $value
"hello"
is stored like this \4 5 5 $hello
, or (alternate)"hello"
"hello\"
is stored like this \4 6 7 $hello\\
\6 nb-of-item
{ "aa" 555 } is stored like this : |
\6 2 "aa" 555 |
\7 nb-of-item
this line must be followed by the corresponding items.[ 33 555 ] is stored like this : |
\7 2 33 555 |
[[44 55][77 88]] |
\7 2 \7 2 44 55 \7 2 77 88 |
\8 Xvalue Yvalue
(1;2)
gives \8 1 2
\9 nb-of-item
'1+2 x^2
once serialized is :\9 3 1 0 2which correspond to : 1*x^0 + 0*x^1 + 2*x^2.