Skip to content

Commit

Permalink
Fixed operator parsing bug reported by brianush1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahnfelt committed Sep 23, 2020
1 parent 07a2bd6 commit a140c11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Parser(file : String, tokens : Array[Token]) {
var result = parseOperand()
val operator = current.raw
while(operators.contains(current.raw)) {
val c = skip("operator", Some(operator))
val c = skip("operator")
val argument = parseOperand()
result = EBinary(c.at, operator, result, argument)
}
Expand Down Expand Up @@ -619,4 +619,4 @@ object Parser {
parse(parser)
}

}
}

0 comments on commit a140c11

Please sign in to comment.