Ti842py

Latest version: v0.9.9

Safety actively analyzes 638430 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.9.0

- Add the ability to use matrices. I wrote a custom class that behaves like the matrices in the TI calculators, except for the fact that indexes start at 1 on TI calculators. This is compensated for in the actual parsing and transpiling rather than in the class.
- [Matrix class](https://github.com/TabulateJarl8/ti842py/blob/75b1639dd5d7828011411b859a14829f8871525f/ti842py/utils/matrix.py)
- [Matrix parsing](https://github.com/TabulateJarl8/ti842py/blob/75b1639dd5d7828011411b859a14829f8871525f/ti842py/tiParser.py#L369)
- Added the ability to use 1 line While statements
- [Implementation](https://github.com/TabulateJarl8/ti842py/blob/75b1639dd5d7828011411b859a14829f8871525f/ti842py/tiParser.py#L140)
- Fixed some bugs regarding one-line If and While statements that contain variable assignments.
- [Moved variable parsing below loops and If statements](https://github.com/TabulateJarl8/ti842py/commit/c0540d1e1a00a18efb7b5b7e442d37f0562be787#diff-0e3aa32bffe6e420ba2565b40e13b32dbec70b73c19832b624e51aff65b172e9R148)
- Fixed bug where lists were all references to each other
- [Fix](https://github.com/TabulateJarl8/ti842py/commit/c0540d1e1a00a18efb7b5b7e442d37f0562be787#diff-0e3aa32bffe6e420ba2565b40e13b32dbec70b73c19832b624e51aff65b172e9R292)
- Added parsing for some special characters like `≥`, `≤`, and `≠`
- [Implementation](https://github.com/TabulateJarl8/ti842py/blob/c0540d1e1a00a18efb7b5b7e442d37f0562be787/ti842py/tiParser.py#L317)
- Translate `int()` to `math.floor()` since that is how it behaves on TI calculators
- [Implementation](https://github.com/TabulateJarl8/ti842py/blob/c0540d1e1a00a18efb7b5b7e442d37f0562be787/ti842py/tiParser.py#L378)


This release may introduce more bugs, so report any that are found.

0.8.5

When a number was under the specified range of 1-24, it wouldn't catch that and translate into something like `-blue`. This is now fixed

0.8.3

Small fixes

Drawing
Two digit numbers were being double replaced in `tiColorToGraphicsColor`. For example, `33` would be interpreted as `3` and `3` and therefore converted to `blueblue`. This was fixed using a regular expression, and I also implemented a ValueError for any numbers not in range 1-24

getKey
Duplicate keymap values for `-` and `−`. They were mapped to 85 as well as 104 which was causing issues. They are now mapped to 85, with 104 being `?`

0.8.2

Use pynput instead of the getkey module in order to improve non-blocking input support. It also better reflects the real behavior of `getKey` from TI-BASIC

0.8.0

This release adds support for piping programs to ti842py's stdin. The files can be 8Xp files or plain text files, just like normal

sh
$ cat BAR.8Xp | ti842py --run
$ ti842py -o bar.py < BAR.8Xp
$ cat CLOCK.bas | ti842py -nr
$ ti842py --no-fix-floating-point --run < CLOCK.bas

0.7.7

Calling `Prompt` and `Disp` after `Output` would overwrite `Output`'s output if the output was on the same line as the `Prompt` or `Disp` output.

In a blank terminal:

Output(2,1,"HELLO")
Prompt X

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.