Skip to main content

microcom_codegen/
lib.rs

1//! microcom-codegen
2//!
3//! Rust port of the parts of the MicroCom code generator
4//! (<https://github.com/kekekeks/MicroCom>) needed for the native interop IDL (`frn.idl`):
5//!
6//! * [`parse`] turns IDL text into an [`ast::Idl`];
7//! * [`cpp::generate`] emits the C++ header (same output as MicroCom's
8//!   C++ generator, i.e. `ferro-native.h`);
9//! * [`rust::generate`] emits Rust bindings on top of `ferroui-microcom`.
10
11pub mod ast;
12pub mod cpp;
13mod parser;
14pub mod rust;
15
16pub use parser::{parse, ParseError};