Serialized Object Syntax
Please read first the introduction to Scripts.

Every things depends on object type, see TYPE function.
object type object type
(nan) 0 5
integer 1 list 6
real 2 array 7
3 complex 8
string 4 poly 9

Long/integer number

TYPE=1
the serialized syntax is as follow :\1 value
alternate notation value

extentions

long values are also used to store Hex and binary number.
BIN syntax \1 value M2 HEX syntax \1 value M1

exemples :
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

Reals number

TYPE=2
the serialized syntax is as follow :\2 value
alternate notation value

extentions

reals values are also used to store DMS.
DMS syntax \2 value M4

exemples :
123.48 is stored like this \1 123.48, or 123.48
1:30:00 is stored like this \1 1.5 M4

String

TYPE=4
The string are the most complex object to serialize (because of some LF or CR that can be into the string)
The syntax is as follow \4 n1 n2 $value
n1 is the size of original string
n2 is the size of transformed string
value is the transformed string
transformation is as follow :

examples
"hello" is stored like this \4 5 5 $hello, or (alternate)"hello"
"hello\" is stored like this \4 6 7 $hello\\

you can use alternate notation (direct) only if there is no special char (no CRLF...)

Lists

TYPE=6
syntax : \6 nb-of-item
this line must be followed by the corresponding items.

example :
{ "aa" 555 } is stored like this :
\6 2
"aa"
555

Array

TYPE=7
syntax \7 nb-of-item this line must be followed by the corresponding items.
note : a matrix is a array of array.

examples :
[ 33 555 ] is stored like this :
\7 2
33
555
[[44 55][77 88]]
\7 2
\7 2
44
55
\7 2
77
88

Complex

TYPE=8
syntax : \8 Xvalue Yvalue

Exemple :
(1;2) gives \8 1 2


Poly

TYPE=9
same syntax as lists or arrays
syntax : \9 nb-of-item

exemple : '1+2 x^2 once serialized is :
\9 3
1
0
2
which correspond to : 1*x^0 + 0*x^1 + 2*x^2.