24 lines
439 B
Plaintext
24 lines
439 B
Plaintext
|
// core provides lots of useful types like String and Byte
|
||
|
use core;
|
||
|
|
||
|
Constant VERSION Version{
|
||
|
major: 1,
|
||
|
minor: 0,
|
||
|
patch: 0,
|
||
|
}
|
||
|
|
||
|
Type Path = String;
|
||
|
|
||
|
Structure File {
|
||
|
name: String,
|
||
|
data: Vector<Byte>,
|
||
|
}
|
||
|
|
||
|
Interface File{
|
||
|
function new accepts(Path) returns(None);
|
||
|
|
||
|
// Open in this iteration assumes the file exists
|
||
|
function open accepts(Path) returns(File);
|
||
|
|
||
|
function close accepts(File) returns(None);
|
||
|
}
|