Spaces:
Sleeping
Sleeping
Update parser.py
Browse files
parser.py
CHANGED
|
@@ -90,7 +90,7 @@ class Parser:
|
|
| 90 |
self.match(func_name)
|
| 91 |
self.match("OPEN_PAREN")
|
| 92 |
arg = None
|
| 93 |
-
if self.current()[0]
|
| 94 |
arg = self.expression()
|
| 95 |
self.match("CLOSE_PAREN")
|
| 96 |
self.match("SEMICOLON")
|
|
|
|
| 90 |
self.match(func_name)
|
| 91 |
self.match("OPEN_PAREN")
|
| 92 |
arg = None
|
| 93 |
+
if self.current()[0] != "CLOSE_PAREN":
|
| 94 |
arg = self.expression()
|
| 95 |
self.match("CLOSE_PAREN")
|
| 96 |
self.match("SEMICOLON")
|