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
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-2.6.1.tar.gz
(99.0 kB
view hashes)
Built Distributions
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf9cd867ec7c28ee53c49ca6167bd9750c4a5456acb3fa94e9d817b3d4033ac |
|
MD5 | 89c4d82c10fee9b2aa9ee359cf2478d4 |
|
BLAKE2b-256 | 680f5da95eeea510873fc27a5710911442adaef74a92ea98a92c83101d14b414 |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d539cb5a139b04ea641ce6094cf155323cbcf03a4d10fa1f826aaa46505d2360 |
|
MD5 | 521573ca4f00f07c5d676348f2d884f7 |
|
BLAKE2b-256 | 377847dc20cf682059021e92e93634131d277ce079fbccb5da5db184cfd2181c |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f5152a6d1f59d992b6f589307020ec07c57e40f10ab7c976ce5fe65df08027 |
|
MD5 | 98794e1923ffe4574252387a7c297386 |
|
BLAKE2b-256 | a70f20bbc2f87818397ad32951902773a978ccd8dd5276ea0e7f593121964679 |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d630adb6c7459e720836d844fa1ad45efdb25dea6535495cdb7b5d9cb1b55ea |
|
MD5 | 5266882cb0f4bce99c4cd053d2a05e6c |
|
BLAKE2b-256 | a4d45984be212b9abee30981a3fef6a7cb4bb733680e09d9ddb3772178b16ef8 |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da8866bbb808940742ce5d218a01cbd554338bb6007d3d35b48dc8dbc668c2a |
|
MD5 | d6a462190ff0dfebff1794eac682de5e |
|
BLAKE2b-256 | d7188334ad20b8677811bea217c1726eff8988236efa845980ae5bd14985cb90 |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7552b21a4fff3ebe564a1391b8256009bf6341b05c9c002ff2fbd91172ecd405 |
|
MD5 | b05c83625dbf8f22b57f6ee8aaf72dc5 |
|
BLAKE2b-256 | cb10870c3cabb96da934787fc21367839e58728d735f1f53c2757555de26d503 |
Close
Hashes for tree_sitter_idl-2.6.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e49ab098439051b4d2660ae80738b8dea23403ebc734e2988c63ee124c6df731 |
|
MD5 | eab02e300bb181e4867043991a814e58 |
|
BLAKE2b-256 | dfc4ef3403499bf4845879cdc020014d02ef8e1862c7edc7004b87e65ce38062 |