This commit is contained in:
Михаил Капелько
2024-04-24 22:24:37 +03:00
parent bd69c05916
commit 3a24d68174
10 changed files with 637 additions and 0 deletions

17
v3/tPythonC++/translate Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import os
import sys
from process import *
DIR = os.path.dirname(os.path.realpath(sys.argv[0]))
# Demand file as input
if len(sys.argv) < 2:
print("Usage: /path/to/translate PYTHON_FILE")
sys.exit(1)
FILE_IN = sys.argv[1]
# Translate file.
out = process(FILE_IN)
print(out)