Project

General

Profile

root / trunk / compiler / serialization / src / Record.proto

1
import "FunctionNames.proto";
2

    
3
package serialize;
4

    
5
option java_package = "org.momut.ooas.codegen.ast.protobuf.gen";
6
option java_outer_classname = "RecordedAstTraversal";
7

    
8
message PBParameter {
9
	optional uint64 uint64_value   = 1; // meant for references, but may be used for actual uint64 values too (if they're needed in the future)
10
	optional string literal_value  = 2;
11
	optional bool bool_value       = 3;
12
	optional int32 int32_value     = 4;
13
	optional uint32 uint32_value   = 5;
14
}
15

    
16
enum PBReturnType {
17
	type_voidPointer = 1;
18
	type_boolean     = 2;
19
}
20

    
21
message PBReturnValue {
22
	required PBReturnType return_type = 1;
23
	optional uint64 return_id         = 2;
24
}
25

    
26
message PBFunctionCall {
27
	optional PBAdd add                  = 1;
28
	optional PBAllocation allocate      = 2;
29
	optional PBIdentifiers identifier   = 3;
30
	optional PBTypes type               = 4;
31
	optional PBStatements statement     = 5;
32
	optional PBExpressions expression   = 6;
33
	
34
	repeated PBParameter parameters     = 7;
35
	required PBReturnValue return_value = 8;
36
}
37

    
38
message PBAstTraversal {
39
	repeated PBFunctionCall calls = 1;
40
	required uint64 main_module   = 2;
41
}