Skip to content

Commit 3cf0330

Browse files
author
Edward Tate
committed
Added preliminary type protocol for Ice via Protocol Buffers. This does not include encode / decode of basic types but sets the stage for future development.
1 parent 801ec42 commit 3cf0330

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

proto/type.proto

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
message IceValue {
2+
enum IceType {
3+
IceBool = 1;
4+
IceInteger = 2;
5+
IceFloat = 3;
6+
IceChar = 4;
7+
IceString = 5;
8+
}
9+
10+
required IceType type = 1;
11+
required bytes value = 2;
12+
}
13+
14+
message IceTuple {
15+
required IceValue left = 1;
16+
required IceValue right = 2;
17+
}
18+
19+
message IceContext {
20+
repeated IceTuple tuple = 1;
21+
}
22+
23+
message IceDemand {
24+
required IceValue var = 1;
25+
required IceContext ctxt = 2;
26+
required IceValue val = 3;
27+
}

rebar.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
%% -*- erlang -*-
22

33
{deps, [ {iceparser, ".*", {git, "[email protected]:esl/iceparser.git"}}
4+
, {protobuffs, ".*", {git, "[email protected]:basho/erlang_protobuffs.git"}}
45
, {meck, ".*", {git, "[email protected]:eproxus/meck.git", {tag, "0.8.1"}}}
56
]}.

0 commit comments

Comments
 (0)