A versatile compiler to make TI-BASIC programs with Python 3 syntax
Project description
TI-Python
A versatile compiler to make TI-BASIC programs from Python 3 (with some restrictions)
Installation
pip install ti-python
Usage
CLI
python -m ti_python --help
or
ti-python --help
python -m ti_python examples/helloworld.py
Python
from ti_python import compile
code = "print('Hello World!')"
print(compile(code))
See examples/ for example programs
Features
printandinput- Integer and string variables (with multi-character names)
- Basic arithmetic
- Basic If statements
- Comparisons
- While loops
- String operations
Goals/To Do
- Lists
- Functions
- Graphical output
- More advanced comparisons and operations (exponents, roots,
and,or)
Non-compiler related
- 8XP encoding
Restrictions
Your Python code still has to follow some restrictions due to the nature of the TI-BASIC.
- Using
printwith commas will not insert spaces in-between - The
inputfunction doesn't always return Strings, they can be numbers
These are known restrictions, but this compiler is still in development so of course you will still have many other issues
Resources and References Used
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ti_python-0.1.1.tar.gz.
File metadata
- Download URL: ti_python-0.1.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7ff7cab5bb98da7dd920936dee37c184812d4f50df2751ad1022ea46f82d02f
|
|
| MD5 |
8d15842b43eecfe21da96222cb59ffe5
|
|
| BLAKE2b-256 |
612443342e0151d59215565772f3793e5ec3b1284bda582fed75a331ac5d0e68
|
File details
Details for the file ti_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ti_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
041cceb39eb3534feda054d23856c6008d55b19291d62f370ca08b232a6190ce
|
|
| MD5 |
262ff1c7532677db6f72d540f5ae7394
|
|
| BLAKE2b-256 |
77be9fec8ac68fbeda944b08e0f7dbfc5b975e89ca15b4dff759d2e7e38c7695
|