This commit is contained in:
greg 2018-02-26 02:27:36 -08:00
parent d9e96398a4
commit 89a2be19f4
1 changed files with 2 additions and 0 deletions

View File

@ -533,6 +533,7 @@ impl Parser {
let new_precedence = match self.peek() {
Operator(op) => BinOp::get_precedence(&*op),
Period => BinOp::get_precedence("."),
Pipe => BinOp::get_precedence("|"),
_ => break,
};
@ -542,6 +543,7 @@ impl Parser {
let sigil = match self.next() {
Operator(op) => op,
Period => Rc::new(".".to_string()),
Pipe => Rc::new("|".to_string()),
_ => unreachable!(),
};
let rhs = self.precedence_expr(new_precedence)?;