Crates.io | tree-sitter-idl |
lib.rs | tree-sitter-idl |
version | 3.10.0 |
source | src |
created_at | 2024-05-08 03:10:13.965015 |
updated_at | 2024-11-04 06:45:26.359921 |
description | IDL grammar for tree-sitter |
homepage | |
repository | https://github.com/cathaysia/tree-sitter-idl |
max_upload_size | |
id | 1233325 |
size | 2,394,351 |
OMG IDL 4.2(with XTypes extension) grammar for tree-sitter.
IDL v4.2:
DDS-XTypes v1.3:
DDS-RPC v1.0:
union A switch(long) {
case 1:
case 2: //< allow
case 3:
u8 a;
};
module MyTemplate <typename T, struct S, long m> {
// ^ allow
};
custom
prop appears in value_box_defcustom valuetype A a; // value_box_def
// ^ extend grammar
interface A {
void f(uint8 b);
};
const u8 A = 0o3;
const u8 A = 0b010101;
union A switch(octet) {};
// ^ allow
enum A {
A,
// ^ allow
};
bitmask A {
@position(0) a,
// ^ allow
};
@DDSRequestTopic("RobotRequestTopic")
// ^ allow ignore `name=`
interface RobotControl {
void command(Command com);
};
@derive(Debug, Clone)
// ^allow ignore "="
struct Hello {};