From 522d9fc951fdb74be1205395ef0b08a766063f8b Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 26 Feb 2018 02:27:36 -0800 Subject: [PATCH] Fixed | --- src/schala_lang/parsing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index d16378f..54e4771 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -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)?;