You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.7 KiB
84 lines
1.7 KiB
include pEpACIDLang.yml2
|
|
|
|
package pkg {
|
|
version 1.0;
|
|
license "License text";
|
|
copyleft "Copyleft text";
|
|
|
|
api api1 {
|
|
// These are the idl basetypes
|
|
// They should be in the package 'pEpIdl'
|
|
// And they need to be 'imported' into every module.
|
|
// But currently there is no import/depends concept implemented
|
|
type string;
|
|
type binary;
|
|
type int;
|
|
type uint;
|
|
type size;
|
|
type bool;
|
|
type opaque;
|
|
|
|
// This is part of the API def
|
|
type stringalias is string;
|
|
|
|
enum enum1 {
|
|
item item1 doc="oneline doc";
|
|
item item2 doc="";
|
|
item item3
|
|
doc=
|
|
"""
|
|
item 3
|
|
------
|
|
multiline
|
|
doc
|
|
""";
|
|
};
|
|
|
|
enum enum2 {
|
|
item item1 0;
|
|
item item2 1;
|
|
item item3 2
|
|
doc=
|
|
"""
|
|
|
|
|
|
|
|
item 3
|
|
------
|
|
|
|
multiline
|
|
|
|
doc with bad formattting """;
|
|
};
|
|
|
|
enum enum3 {
|
|
hex item1 0x00;
|
|
hex item2 0x10 doc="oneline doc";
|
|
hex item3 0xff
|
|
doc=
|
|
"""
|
|
item 3
|
|
------
|
|
multi line
|
|
doc
|
|
""";
|
|
};
|
|
|
|
struct struct1 {
|
|
field int int1;
|
|
field size size1 doc="short doc";
|
|
field string string1
|
|
doc="""
|
|
Multiline
|
|
Doc
|
|
""",
|
|
bla="fds";
|
|
};
|
|
};
|
|
|
|
api api2 {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|