typhoon-instruction-builder 0.2.1

Code generation for instruction clients and CPI builders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod client;
mod cpi;

pub use {client::*, cpi::*};
use {
    hashbrown::HashMap,
    proc_macro2::TokenStream,
    typhoon_syn::{Context, Instruction},
};

pub trait Generator {
    fn generate_token(
        instructions: &HashMap<usize, Instruction>,
        context: &HashMap<String, Context>,
        extra_token: TokenStream,
    ) -> TokenStream;
}