Skip to content
Snippets Groups Projects
Commit ff3b8f5e authored by Esteban Prince, Liam (UG - Computer Science)'s avatar Esteban Prince, Liam (UG - Computer Science)
Browse files

Update parser.py

parent 9e70b738
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,8 @@ def preprocess(): ...@@ -3,8 +3,8 @@ def preprocess():
# Return the next token from the input # Return the next token from the input
def getToken(): def getToken():
int lastChar = ' ' int lastChar = ' '
while isSpace(lastChar): for c in input:
lastChar = getChar() lastChar = c if c != ' '
def parse(): def parse():
preprocess(): preprocess():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment