diff --git a/setup.cfg b/setup.cfg index 224a779..0f94f37 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -description-file = README.md \ No newline at end of file +description_file = README.md \ No newline at end of file diff --git a/test b/test new file mode 100644 index 0000000..35fbcd9 --- /dev/null +++ b/test @@ -0,0 +1,4 @@ +ClrHome +Output(2,2,"test" +Prompt A +Output(2,2,"test" \ No newline at end of file diff --git a/ti842py/__version__.py b/ti842py/__version__.py index 5049d3c..505789a 100644 --- a/ti842py/__version__.py +++ b/ti842py/__version__.py @@ -1,7 +1,7 @@ __title__ = "ti842py" __description__ = "TI-BASIC to Python 3 Transpiler" __url__ = "https://github.com/TabulateJarl8/ti842py" -__version__ = "0.9.9" +__version__ = "0.9.10" __author__ = "Tabulate" __author_email__ = "tabulatejarl8@gmail.com" __license__ = "GPLv3" diff --git a/ti842py/main.py b/ti842py/main.py index ed4e296..4e075b7 100644 --- a/ti842py/main.py +++ b/ti842py/main.py @@ -4,7 +4,6 @@ import tempfile import sys import subprocess -import io import pty try: @@ -97,7 +96,7 @@ def transpile(infile, outfile="stdout", decompileFile=True, forceDecompile=False def main(): parser = argparse.ArgumentParser(description='TI-BASIC to Python 3 Transpiler') - infile_argument = parser.add_argument( + parser.add_argument( 'infile', metavar='infile', nargs='?', diff --git a/ti842py/ti_parser.py b/ti842py/ti_parser.py index aee2c51..f9e373e 100644 --- a/ti842py/ti_parser.py +++ b/ti842py/ti_parser.py @@ -42,8 +42,6 @@ def __init__(self, basic, multiplication, floating_point, turbo_draw): if self.turbo_draw: self.UTILS['draw']['code'] = [line for line in self.UTILS['draw']['code'] if '@_slow' not in line] - self.UTILS['persistant_data']['enabled'] = True - self.drawLock = False def convert_line(self, index, line): @@ -195,7 +193,6 @@ def convert_line(self, index, line): elif line.startswith("DelVar"): statement = "del " + line[7:] # Prompt - # TODO: Fix prompt after Output going over output elif line.startswith("Prompt"): variable = line[7:] if "," in variable: diff --git a/ti842py/utils/to_number.py b/ti842py/utils/to_number.py index d2e53f9..e562f0e 100644 --- a/ti842py/utils/to_number.py +++ b/ti842py/utils/to_number.py @@ -1,4 +1,4 @@ -def toNumber(string): +def to_number(string): try: return int(string) except ValueError: