Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TabulateJarl8 committed May 13, 2023
1 parent 0c4f20d commit 3309c35
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md
4 changes: 4 additions & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ClrHome
Output(2,2,"test"
Prompt A
Output(2,2,"test"
2 changes: 1 addition & 1 deletion ti842py/__version__.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 1 addition & 2 deletions ti842py/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import tempfile
import sys
import subprocess
import io
import pty

try:
Expand Down Expand Up @@ -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='?',
Expand Down
3 changes: 0 additions & 3 deletions ti842py/ti_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ti842py/utils/to_number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def toNumber(string):
def to_number(string):
try:
return int(string)
except ValueError:
Expand Down

0 comments on commit 3309c35

Please sign in to comment.