d
This commit is contained in:
17
_translator-C++-Swift/translate
Executable file
17
_translator-C++-Swift/translate
Executable 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 CPP_FILE")
|
||||
sys.exit(1)
|
||||
|
||||
FILE_IN = sys.argv[1]
|
||||
|
||||
# Translate file.
|
||||
out = process(FILE_IN)
|
||||
print(out)
|
||||
Reference in New Issue
Block a user