Skip to content

Commit

Permalink
Update parse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdszekeres committed Sep 16, 2020
1 parent 88e9bf2 commit c2302f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def statement(self):
self.emitter.emit("printf(\"%" + ".2f\\n\", (float)(")
self.expression()
self.emitter.emitLine("));")
elif self.checkToken(TokenType.WAIT): self.nextToken()
elif self.checkToken(TokenType.WAIT):
self.nextToken()
if self.checkToken(TokenType.FLOAT):
self.emitter.emitLine("sleep(" + self.curToken.text + ");")
self.nextToken()
Expand Down

0 comments on commit c2302f2

Please sign in to comment.