Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod docs;
mod flow;
mod hack;
mod rust;
mod shared;

use crate::definitions::Declarations;
use anyhow::Result;

pub use flow::FlowCodegen;
pub use hack::HackCodegen;
pub use rust::RustCodegen;

pub trait Codegen {
    fn gen_declarations(declarations: &Declarations) -> Result<String>;
}