difftreelog
feat(parser) reexport PEG
in: master
1 file changed
crates/jsonnet-parser/src/lib.rsdiffbeforeafterboth7use std::{path::PathBuf, rc::Rc};7use std::{path::PathBuf, rc::Rc};8mod expr;8mod expr;9pub use expr::*;9pub use expr::*;10pub use peg;101111enum Suffix {12enum Suffix {12 String(String),13 String(String),282 }283 }283}284}284285286pub type ParseError = peg::error::ParseError<peg::str::LineCol>;285pub fn parse(287pub fn parse(str: &str, settings: &ParserSettings) -> Result<LocExpr, ParseError> {286 str: &str,287 settings: &ParserSettings,288) -> Result<LocExpr, peg::error::ParseError<peg::str::LineCol>> {289 jsonnet_parser::jsonnet(str, settings)288 jsonnet_parser::jsonnet(str, settings)290}289}291290