Skip to content

Commit ac317c4

Browse files
authored
v1.2BETA
- Requires .mscript file(s)
1 parent 886200c commit ac317c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mscript.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import numpy as np
22

33
def read(file: str):
4+
if file.endswith(".mscript"):
5+
pass
6+
else:
7+
raise "INCORRECT FILE TYPE ERROR :: Should be *.mscript"
8+
49
with open(file, "r") as f:
510
data = f.read()
611

@@ -15,4 +20,4 @@ def mscrToPy(fileName: str):
1520
python = mprint2.replace("func", "def").replace("&", "and").replace("|", "or").replace("switch", "match").replace("enum", "enumerate")
1621

1722
with open("exe.py", "w") as i:
18-
i.write(str(python))
23+
i.write(str(python))

0 commit comments

Comments
 (0)