Lekensteyn / parse8xp

Convert between source code and TI83/TI84/TI84+/TI84s programs (in .8xp format)
22 stars 4 forks source link

Python TI83 BASIC converter

A program to convert between source code and TI83/TI84/TI84+/TI84s programs (in .8xp format).

This is the work of user darkspork from the TI-Basic Developer forums. The instructions and source code are based on a forum post from 26 September 2009.

Instructions

This program is written in Python. You'll need that to run this.

  1. Get Python from https://www.python.org
  2. Save these two files in the same directory
  3. Open IDLE (it comes with Python)
  4. Open parse8xp.py
  5. Run it
  6. Type into the command window, to compile or decompile:

    decompile('path/to/FILE.8xp', 'path/to/output/file.txt') recompile('path/to/SOURCE', 'path/to/output/file.8xp')

You can also get help on anything by typing

gethelp('COMMAND YOU WANT HELP ON')

Basically, the point of this is so you can use any text editor to modify your programs. Alternatively, you can use the example main.py as shortcut in a terminal:

python main.py path/to/FILE.8xp path/to/output/file.txt
python main.py path/to/SOURCE   path/to/output/file.8xp

Python 3

The tool was originally written for Python 2, it partially works with Python 3 due to differences in interpreting strings (unicode versus bytes). compile and recompile work in Python 3, gethelp and spellcheck do not.

License

Citing the forum post:

You're free to modify, use, and distribute this code for whatever you want.

Note that parse8xp.py also specifies the "GNU" license, whatever that means.