Skip to content

Commit

Permalink
delete digits_prime method
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdidehghandev committed Dec 12, 2024
1 parent 536744b commit 6e57407
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,10 @@ def digits(self):
digit = self.lookahead.value
self.match(digit)
self.postfix.append(token)
self.digits_prime()
self.digits()


def digits_prime(self):
if self.lookahead.type == "NUM":
token = self.lookahead

digit = self.lookahead.value
self.match(digit)
self.postfix.append(token)
self.digits_prime()
else:
return



def optional_fraction(self):
Expand Down

0 comments on commit 6e57407

Please sign in to comment.