Skip to content

Commit

Permalink
added halter; changed FOR (line 18)
Browse files Browse the repository at this point in the history
  • Loading branch information
MugilanGN authored Apr 29, 2019
1 parent e0050c7 commit 65c6dc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def identify(text):
while_re = re.compile(r'^WHILE\s(.+)\sDO$')
endwhile_re = re.compile(r'^ENDWHILE$')

for_re = re.compile(r'^FOR\s(.+)\s=\s(.+)\sTO\s(.+)')
for_re = re.compile(r'^FOR\s(.+)\s<-\s(.+)\sTO\s(.+)')
next_re = re.compile(r'^NEXT$')

repeat_re = re.compile(r'^REPEAT$')
Expand Down Expand Up @@ -225,6 +225,8 @@ def check(s):
pass

count+= 1

lines.append("r = input() #line that halts execution so program won't close")

write(lines)

Expand Down

0 comments on commit 65c6dc4

Please sign in to comment.