Mercurial > projects > mde
comparison mde/mergetag/doc/file-format-text.txt @ 2:78eb491bd642
mergetag: partially redesigned dataset and text reader classes. Changed text format.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 03 Nov 2007 15:15:43 +0000 |
parents | d547009c104c |
children | 9a990644948c |
comparison
equal
deleted
inserted
replaced
1:18491334a525 | 2:78eb491bd642 |
---|---|
43 recognised format and either ignore or print a warning about other tags. | 43 recognised format and either ignore or print a warning about other tags. |
44 | 44 |
45 | 45 |
46 Data item tags: Type format: | 46 Data item tags: Type format: |
47 Note: | 47 Note: |
48 The type is not initially parsed; it is read as a token terminated by any of these | 48 The type is read as a single token terminated by any of these characters: <>|= |
49 characters: <>|= | 49 There must not be spaces within the type, e.g. "char []". |
50 Of course any character other than a | terminating the token is an error. | 50 Of course any character other than a | terminating the token is an error. |
51 Format: | 51 Format: |
52 tp a basic type | 52 tp a basic type |
53 tp[] a dynamic list of sub-type tp | 53 tp[] a dynamic list of sub-type tp |
54 Possible future additions: | 54 Possible future additions: |
55 tp() a dynamic merging list of sub-type tp (only valid as the primary type, ie | 55 tp() a dynamic merging list of sub-type tp (only valid as the primary type, ie |
56 <subtype()|...>, not a sub-type of a tuple or another dynamic list) | 56 <subtype()|...>, not a sub-type of a tuple or another dynamic list) |
57 {t1,t2,...,tn} a tuple with sub-types t1, t2, ..., tn | 57 {t1,t2,...,tn} a tuple with sub-types t1, t2, ..., tn |
58 | 58 |
59 Basic types (only items with a + are currently supported): | 59 Basic types (only items with a + are currently supported): |
60 abbrev./full name (each type has two names which can be used): | 60 name |
61 | 61 |
62 0 void --- less useful type | 62 void --- less useful type |
63 + 1 bool --- integer types | 63 + bool --- integer types |
64 + s8 byte | 64 + byte |
65 + u8 ubyte | 65 + ubyte |
66 + s16 short | 66 + short |
67 + u16 ushort | 67 + ushort |
68 + s32 int | 68 + int |
69 + u32 uint | 69 + uint |
70 + s64 long | 70 + long |
71 + u64 ulong | 71 + ulong |
72 s128 cent | 72 cent |
73 u128 ucent | 73 ucent |
74 | 74 |
75 + binary --- alias for ubyte[] | 75 + binary --- alias for ubyte[] |
76 | 76 |
77 + fp32 float --- floating point types | 77 + float --- floating point types |
78 + fp64 double | 78 + double |
79 + fp real | 79 + real |
80 im32 ifloat | 80 ifloat |
81 im64 idouble | 81 idouble |
82 im ireal | 82 ireal |
83 cpx32 cfloat | 83 cfloat |
84 cpx64 cdouble | 84 cdouble |
85 cpx creal | 85 creal |
86 | 86 |
87 + UTF8 char --- character types (actually these CANNOT support UTF8 chars with length > 1) | 87 + char --- single character types (actually these CANNOT support UTF8 symbols with length > 1) |
88 UTF16 wchar | 88 wchar |
89 UTF32 dchar | 89 dchar |
90 + string --- alias for char[] --- (DOES support UTF8) | 90 + string --- alias for char[] --- (DOES support UTF8) |
91 wstring --- alias for wchar[] | 91 wstring --- alias for wchar[] |
92 dstring --- alias for dchar[] | 92 dstring --- alias for dchar[] |
93 | 93 |
94 | 94 |
95 Data item tags: Data format: | 95 Data item tags: Data format: |
96 Valid chars: [](){},+-.0-9eEixXa-fA-F '.' ".*" | 96 Valid chars: [](){},+-.0-9eEixXa-fA-F '.' ".*" |
97 Format: | 97 Format: |