Skip to content

Commit ebce991

Browse files
committed
rename: term -> multiply_op
1 parent 45780c2 commit ebce991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ fn parens(i: Span) -> IResult<Span, Expression> {
595595
space_delimited(delimited(tag("("), expr, tag(")")))(i)
596596
}
597597

598-
fn term(i: Span) -> IResult<Span, Expression> {
598+
fn multiply_op(i: Span) -> IResult<Span, Expression> {
599599
let (r, init) = unary_op(i)?;
600600

601601
let res = fold_many0(
@@ -618,7 +618,7 @@ fn term(i: Span) -> IResult<Span, Expression> {
618618
}
619619

620620
fn add_expr(i: Span) -> IResult<Span, Expression> {
621-
let (r, init) = term(i)?;
621+
let (r, init) = multiply_op(i)?;
622622

623623
let res = fold_many0(
624624
pair(
@@ -632,7 +632,7 @@ fn add_expr(i: Span) -> IResult<Span, Expression> {
632632
tag(">>>"),
633633
tag(">>"),
634634
))),
635-
term,
635+
multiply_op,
636636
),
637637
move || init.clone(),
638638
|acc, (op, val)| {
@@ -684,7 +684,7 @@ fn cmp_expr(i0: Span) -> IResult<Span, Expression> {
684684
}
685685

686686
fn satisfies_expr(input: Span) -> IResult<Span, Expression> {
687-
let (i, ex) = term(input)?;
687+
let (i, ex) = multiply_op(input)?;
688688
let (i, _) = space_delimited(tag("satisfies"))(i)?;
689689
let (i, td) = cut(space_delimited(type_expr))(i)?;
690690
Ok((

0 commit comments

Comments
 (0)