ligen-parser 0.1.18

Ligen (Language Interface Generator) is an extensible automatic binding generator ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod universal;
pub mod config;

pub use config::*;

use ligen_common::Result;

pub trait Parser<Input> {
    type Output;
    fn parse(&self, input: Input, config: &ParserConfig) -> Result<Self::Output>;
    fn name(&self) -> &str {
        "Parser"
    }
    fn config(&self) -> ParserConfig {
        Default::default()
    }
}