Skip to content

Commit 886200c

Browse files
authored
Merge pull request #1 from MitchellShibilski-Unkel/main
Add 'enum'
2 parents 1d0ccd0 + d3afaaf commit 886200c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mscript.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ def mscrToPy(fileName: str):
1212
mprint = file.replace("println(", "print(")
1313
mprint2 = mprint.replace('")', '\\n")')
1414

15-
python = mprint2.replace("func", "def").replace("&", "and").replace("|", "or").replace("switch", "match")
15+
python = mprint2.replace("func", "def").replace("&", "and").replace("|", "or").replace("switch", "match").replace("enum", "enumerate")
1616

17-
with open(f"{file}.py", "w") as i:
18-
i.write(str(python))
19-
20-
return file
17+
with open("exe.py", "w") as i:
18+
i.write(str(python))

0 commit comments

Comments
 (0)