Skip to content

Commit

Permalink
removing duplicate function left after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mbellotti committed Apr 14, 2023
1 parent df69558 commit 1281fdc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,19 +821,6 @@ func (l *FaultListener) ExitRunInit(c *parser.RunInitContext) {
l.push(inst)
}

func (l *FaultListener) ExitRunSwap(c *parser.SwapContext) {
token := util.GenerateToken("SWAP", "SWAP", c.GetStart(), c.GetStop())

right := l.pop()
left := l.pop()

l.push(&ast.InfixExpression{
Token: token,
Left: left.(ast.Expression),
Operator: "=",
Right: right.(ast.Expression),
})
}

func (l *FaultListener) ExitRunSwap(c *parser.SwapContext) {
token := util.GenerateToken("SWAP", "SWAP", c.GetStart(), c.GetStop())
Expand Down

0 comments on commit 1281fdc

Please sign in to comment.