Idl grammar for tree-sitter
Project description
tree-sitter-idl
OMG IDL 4.2(with XTypes extension) grammar for tree-sitter.
current state
IDL 4.2:
- 7.3 Preprocessing(partial)
- 7.4.1 Building Block Core Data Types
- 7.4.2 Building Block Any
- 7.4.3 Building Block Interfaces – Basic
- 7.4.4 Building Block Interfaces – Full
- 7.4.5 Building Block Value Types
- 7.4.6 Building Block CORBA-Specific – Interfaces
- 7.4.7 Building Block CORBA-Specific – Value Types
- 7.4.8 Building Block Components – Basic
- 7.4.9 Building Block Components – Homes
- 7.4.10 Building Block CCM-Specific
- 7.4.11 Building Block Components – Ports and Connectors
- 7.4.12 Building Block Template Modules
- 7.4.13 Building Block Extended Data-Types
- 7.4.14 Building Block Anonymous Types
- 7.4.15 Building Block Annotations
- 7.4.16 Relationships between the Building Blocks
- 8 Standardized Annotations
DDS-XTypes:
- 7.3.1.2.3 Alternative Annotation Syntax
- 7.3.1.2.1 Built-in Annotations
extends
allow merge case
union A switch(long) {
case 1:
case 2: //< allow
case 3:
u8 a;
};
allow using simple_type_spec in template parameter
module MyTemplate <typename T, struct S, long m> {
// ^ allow
};
allow custom
prop appears in value_box_def
custom valuetype A a; // value_box_def
// ^ extend grammar
allow omit param_attribute
interface A {
void f(uint8 b);
};
allow rust style oct number
const u8 A = 0o3;
allow binary number
const u8 A = 0b010101;
allow octet in typedef_spec
union A switch(octet) {};
// ^ allow
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tree-sitter-idl-3.1.0.tar.gz
(110.2 kB
view hashes)
Built Distributions
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36706af24ec9e84ea450973e3bc8e7f800b8619834c999537b1c64bbc6da6243 |
|
MD5 | 6be48191630e130ef20aa308f7151494 |
|
BLAKE2b-256 | 0152ae506d5cae6a6fd02fa408514b4733157f75cd8b1b65f00830e68f5c045f |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7b381033a02e912c06f0053a3c4afed6bdca16c5c6c29230e4eab52789e8c07 |
|
MD5 | 74ada5bf76e360e720b25fdc63c1fec0 |
|
BLAKE2b-256 | 7dea93e50576bbfd261faae280dc20cfb707a2b42784692e88875ec254e267a1 |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3db84056d414879f1917e1130a6f2e28c136c00726bbc9c6a7f3ce3841666b9 |
|
MD5 | 0c27393c6008b2d8e80eceacd15ba44c |
|
BLAKE2b-256 | 8a17be68e99d6a1382a29c53193a69aea4eb689f6ddaef94aaea492afb3e2ceb |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1efdafd3c499772279289387749a18de4f7fa224670c6df4a7fd9b69bd12eb83 |
|
MD5 | ec178668ad13e4c30e97ca619597bfe5 |
|
BLAKE2b-256 | 85fe1198d9ea9339e02410e4051b05c0f34259c38fe7ea2b4176a52acceb7fce |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb75df79ffd0a97e78ad76bc6b6f80cc285fc6c649a4921ff07b33cef467fad1 |
|
MD5 | fb5ce5228ab33dfc58787caa68766532 |
|
BLAKE2b-256 | 0e68f4531f73b4d20cc600f7a5a2270bb4a9afaeaef64bbc081750ff4dc1e2ae |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd6a5bd7dd85808409c74e2ec286752f5f25049e6a9c87e8eb09ae24e8237ec |
|
MD5 | eb228a488b04491e5f91121da155c461 |
|
BLAKE2b-256 | 4687e585a41c8813bec23df73268f3f57195d20b3813e5d3a7351fcae3e6e940 |
Close
Hashes for tree_sitter_idl-3.1.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b82765e9051325ab492b2c189fd3781b402b95ed5b4140f91dc5604699b8e6db |
|
MD5 | 6fbed2c6026eee20d579226aeb16b12d |
|
BLAKE2b-256 | d32836cff925fa57cf3a07636c6e6c03c0c782d6ad90ea603ae1a41504d7c2d3 |