git.delta.rocks / jrsonnet / refs/commits / 9dc4a3f92cc6

difftreelog

feat(parser) reexport PEG

Лач2020-06-06parent: #1e7463d.patch.diff
in: master

1 file changed

modifiedcrates/jsonnet-parser/src/lib.rsdiffbeforeafterboth
7use std::{path::PathBuf, rc::Rc};7use std::{path::PathBuf, rc::Rc};
8mod expr;8mod expr;
9pub use expr::*;9pub use expr::*;
10pub use peg;
1011
11enum Suffix {12enum Suffix {
12 String(String),13 String(String),
282 }283 }
283}284}
284285
286pub 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