Skip to content

Commit 3a3eb17

Browse files
Update mscript.py
- Added ++, --, **, //; instead of +=, -=, *=, /=
1 parent 09a13d9 commit 3a3eb17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mscript.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def mscrToPy(fileName: str):
1919

2020
expections = mprint2.replace("except", "except Exception")
2121

22-
python = expections.replace("func", "def").replace("&", "and").replace("|", "or").replace("switch", "match").replace("enum", "enumerate").replace("true", "True").replace("false", "False").replace("^", "**").replace("r+", "raise").replace(">>", "->").replace("none", "None")
22+
equalTo = expections.replace("++", "+=").replace("--", "-=").replace("**", "*=").replace("//", "/=")
23+
24+
python = equalTo.replace("func", "def").replace("&", "and").replace("|", "or").replace("switch", "match").replace("enum", "enumerate").replace("true", "True").replace("false", "False").replace("^", "**").replace("r+", "raise").replace(">>", "->").replace("none", "None")
2325

2426
with open("exe.py", "w") as i:
2527
i.write(str(python))

0 commit comments

Comments
 (0)