Skip to content

Commit b5787a3

Browse files
committed
Workaround for Silicon using eqExp
1 parent 0590cd5 commit b5787a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/scala/viper/silver/parser/FastParser.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,13 @@ class FastParser {
531531

532532
def eqOp[$: P] = P(StringIn("==", "!=").!)
533533

534-
def eqExp[$: P](bracketed: Boolean = false): P[PExp] = FP(cmpExp(bracketed) ~~~ (eqOp ~ eqExp()).lw.?).map {
534+
def eqExpParen[$: P](bracketed: Boolean = false): P[PExp] = FP(cmpExp(bracketed) ~~~ (eqOp ~ eqExp).lw.?).map {
535535
case (pos, (a, b)) => b match {
536536
case Some(c) => PBinExp(a, c._1, c._2)(pos)
537537
case None => a
538538
}
539539
}
540+
def eqExp[$: P]: P[PExp] = eqExpParen()
540541

541542
def andExp[$: P](bracketed: Boolean = false): P[PExp] = FP(eqExp(bracketed) ~~~ ("&&".! ~ andExp()).lw.?).map {
542543
case (pos, (a, b)) => b match {

0 commit comments

Comments
 (0)