pub fn parse(lexer: Lexer<'_>) -> Result<Defs, Errors>
Parse the top-level ISLE definitions and return their AST.
18 19 20 21 22 23 24 25
pub fn from_files<P: AsRef<Path>>( inputs: impl IntoIterator<Item = P>, options: &codegen::CodegenOptions, ) -> Result<String, Errors> { let lexer = crate::lexer::Lexer::from_files(inputs)?; let defs = crate::parser::parse(lexer)?; compile(&defs, options) }