Skip to content

Commit

Permalink
added parentheses to address an error from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peteraldous committed Apr 5, 2023
1 parent 87daabd commit 93009ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PrecedenceParsersTest {
(Associativity.Left, List(Mult, Divide)),
(Associativity.Left, List(Plus, Minus)),
(Associativity.Right, List(Equals)))
def integer: Parser[Leaf] = "[0-9]+".r ^^ { s: String => Leaf(s.toInt) }
def integer: Parser[Leaf] = "[0-9]+".r ^^ { (s: String) => Leaf(s.toInt) }
def binop: Parser[Op] = "+" ^^^ Plus | "-" ^^^ Minus | "*" ^^^ Mult | "/" ^^^ Divide | "=" ^^^ Equals
def expression = new PrecedenceParser(integer, binop, prec, Binop.apply)
}
Expand Down

0 comments on commit 93009ac

Please sign in to comment.