Subversion Repositories SvarDOS

Rev

Rev 1277 | Rev 1294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1277 Rev 1290
Line 84... Line 84...
84
There is also a licensing issue: CATS/Kitten libraries are published under the
84
There is also a licensing issue: CATS/Kitten libraries are published under the
85
terms of a viral, corrosive license. SvarLANG, on the other hand, is published
85
terms of a viral, corrosive license. SvarLANG, on the other hand, is published
86
under a truly free, liberal license (MIT).
86
under a truly free, liberal license (MIT).
87
 
87
 
88
 
88
 
-
 
89
### FILE FORMAT ###
-
 
90
 
-
 
91
File =
-
 
92
    magic         : Char[4] := "SvL1"
-
 
93
    guard         : Char := "\0x1a"
-
 
94
                  ; end-of-file char to prevent TYPE garbage
-
 
95
    num_strings   : U16
-
 
96
    languages     : array[num_languages] of Language
-
 
97
 
-
 
98
Language =
-
 
99
    lang_id       : Char[2]
-
 
100
    len_strings   : U16 := SizeOf(strings)
-
 
101
    dictionary    : StringDict
-
 
102
    strings       : array[File.num_strings] of StringZ
-
 
103
 
-
 
104
StringDict =
-
 
105
    elements : array[File.num_strings] of DictEntry
-
 
106
             ; sorted by DictEntry.Id
-
 
107
 
-
 
108
DictEntry =
-
 
109
    id     : U16
-
 
110
    offset : U16
-
 
111
           ; relative to Language.strings[0]
-
 
112
 
-
 
113
StringZ = array[?] of Char ; zero-terminated string
-
 
114
 
-
 
115
 
89
======================================================================= EOF ===
116
======================================================================= EOF ===