mirror of
https://github.com/RGBCube/DML
synced 2025-07-28 16:17:46 +00:00
Initial Commit
This commit is contained in:
parent
66739939c2
commit
1e815a2dc0
9 changed files with 243 additions and 1 deletions
12
dml/run.py
Normal file
12
dml/run.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from .encoder import decode
|
||||
from .fileutils import decode_file
|
||||
|
||||
__all__ = ("run_file", "run")
|
||||
|
||||
|
||||
def run(dml: str) -> None:
|
||||
exec("".join(decode(dml)))
|
||||
|
||||
|
||||
def run_file(fp: str) -> None:
|
||||
exec("".join(decode_file(fp)))
|
Loading…
Add table
Add a link
Reference in a new issue