Fixed |
This commit is contained in:
parent
d9e96398a4
commit
89a2be19f4
@ -533,6 +533,7 @@ impl Parser {
|
|||||||
let new_precedence = match self.peek() {
|
let new_precedence = match self.peek() {
|
||||||
Operator(op) => BinOp::get_precedence(&*op),
|
Operator(op) => BinOp::get_precedence(&*op),
|
||||||
Period => BinOp::get_precedence("."),
|
Period => BinOp::get_precedence("."),
|
||||||
|
Pipe => BinOp::get_precedence("|"),
|
||||||
_ => break,
|
_ => break,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -542,6 +543,7 @@ impl Parser {
|
|||||||
let sigil = match self.next() {
|
let sigil = match self.next() {
|
||||||
Operator(op) => op,
|
Operator(op) => op,
|
||||||
Period => Rc::new(".".to_string()),
|
Period => Rc::new(".".to_string()),
|
||||||
|
Pipe => Rc::new("|".to_string()),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
let rhs = self.precedence_expr(new_precedence)?;
|
let rhs = self.precedence_expr(new_precedence)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user