Increment variables

This commit is contained in:
2025-10-30 17:11:10 +11:00
parent 89065711ce
commit 976e9dfaa0
6 changed files with 98 additions and 13 deletions

View File

@@ -6,9 +6,9 @@ def preprocess(code: str) -> list[list[str]]:
for i in code:
if i == '\n':
isComment = False
if tokenise[-1] != []:
if token != '':
tokenise[-1].append(token)
if token != '':
tokenise[-1].append(token)
if tokenise[-1]:
tokenise.append([])
token = ''
elif isComment: