-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.bcs
More file actions
52 lines (44 loc) · 929 Bytes
/
example.bcs
File metadata and controls
52 lines (44 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace std {
alias name : string
choice def_type {
alias : type
enum : list<name>
choice : map<name, type>
struct : map<name, type>
}
}
namespace zeon {
use std:name
enum commit_attr_type {
const
mut
iter_list
iter_set
complex
}
struct commit_attr {
attr_type : commit_attr_type
attr_name : name
val_type : type
}
struct complex_rev {
// TODO
}
choice rev {
const : unknown
mut : unknown
iter_list_add : list<unknown>
iter_set_add : list<unknown>
iter_set_remove : list<unknown>
complex : complex_rev
}
struct object_id {
object_type : uint
object_inner_id : uint
}
struct rev_id {
object_id
trait_id
trait_attr_id
}
}