Object Management Group Interface Definition Language v4.1 grammar for pest
This grammar was manually converted from the EBNF Consolidated IDL Grammar Annex of the specification. As such, it has not been fully tested. In many cases pest's eager matching causes an unexpected rule to match when the rules are ordered as in the reference EBNF grammar. As there is not a comprehensive test suite / example IDL file for this project, it is likely there are other undiscovered errors of this type. Problem reports are appreciated. Bonus points if an example triggering the error is included.
pest_idl_v4_grammar requires Cargo and Rust.
Add the following to Cargo.toml
:
pest_idl_v4_grammar = "*"
and in your Rust lib.rs
or main.rs
:
extern crate pest;
use pest::Parser;
extern crate pest_idl_v4_grammar;
use pest_idl_v4_grammar::{Rule,IdlParser};
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.