feat(targets): complex targets sets expressions #10
Loading…
Reference in a new issue
No description provided.
Delete branch "target-set-expressions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
allows intersection and complementary
Il faut ptet changer quelque commentaire de docs, pas fait attention
feat(targets): complexe targets sets expressionsto feat(targets): complex targets sets expressions2b7bd80249
to19ada5dca3
@ -53,7 +57,168 @@ impl FromStr for NodeFilter {
}
}
fn end_delimiter(c: char) -> bool {
shouldn't this be
#[inline]
?@ -57,0 +124,4 @@
Ok((
interior,
unparsed.strip_prefix(')').ok_or(ColmenaError::Unknown {
message: format!("Expected a closing parenthese at {:?}.", unparsed),
parenthesis
@ -57,0 +202,4 @@
/// Parses the intersection operations between unions.
///
/// It returns the unparsed text that follows
fn parse_op2(beg: Self, unparsed: &str) -> ColmenaResult<(Self, &str)> {
why
beg
is notself
?what is
beg
actually?I prefer not to see
parse_op{1,2}
as a member function ofNodeFilter
because it part of parsing operationsDiscussed a bit bellow, but an accumulator in fact, renamed to
acc
Sounds good to me! I just have a question on what is
beg
, but the rest is perfectly readable.in
parse_op{1,2}
the first argumentbeg
is the parsed expression before the union/intersection we are parsing, it is modified if there is the corresponding operation in the unparsed str :parse_op1(parse_expr2("a"), ",b,c")
will do a call equivalent toparse_op1(parse_expr2("a,b"), ",c")
maybe I should more call it
acc
...19ada5dca3
tof1e99afd14
f1e99afd14
tof28359373f