forked from gentoo-utils/gentoo-utils
impl Parseable trait
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
use gentoo_utils::depend;
|
||||
use mon::{Parser, eof, input::InputIter, tag};
|
||||
use gentoo_utils::{
|
||||
Parseable,
|
||||
depend::{self, Expr},
|
||||
};
|
||||
use mon::{Parser, eof, input::InputIter, tag, whitespace1};
|
||||
use std::fs;
|
||||
|
||||
#[test]
|
||||
@@ -14,7 +17,8 @@ fn parse_md5_cache() {
|
||||
if line.starts_with("DEPEND=") {
|
||||
eprintln!("{line}");
|
||||
eprintln!();
|
||||
depend::parsers::exprs()
|
||||
Expr::parser()
|
||||
.separated_list(whitespace1(), 0..)
|
||||
.ignore()
|
||||
.or(eof())
|
||||
.preceded_by(tag("DEPEND="))
|
||||
|
||||
Reference in New Issue
Block a user