Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Deep Toaster on January 02, 2021, 10:41:07 pm

Title: Some utilities for manipulating TI variables in PHP (including a tokenizer)
Post by: Deep Toaster on January 02, 2021, 10:41:07 pm
So this is something someone (I think Merth or KermM) suggested somewhere around eight years ago, but I finally got around to starting to do it. Whoo!

clrhome-tools-php (https://github.com/deeptoaster/clrhome-tools-php) is (going to be) a bunch of stuff open-sourced from ClrHome's massive codebase. It's taking me a bit of time to clean it up enough to publish (mostly because my web code from eight years ago was moderately atrocious), but the first batch of utilities are ready if anyone would like to use them for their own projects.

Probably most interesting is Program.class.php (https://github.com/deeptoaster/clrhome-tools-php/blob/master/Program.class.php), a class for reading and writing prgm variables that comes with a (pretty robust) tokenizer. Same syntax as IES (https://clrhome.org/ies/) (whence the original code) and TokenIDE (https://www.omnimaga.org/ti-z80-calculator-projects/tokenide-ti-basic-ide/) (the original inspiration).
Title: Re: Some utilities for manipulating TI variables in PHP (including a tokenizer)
Post by: Eeems on January 02, 2021, 10:44:15 pm
Hmm, should we add a link to the tools menu?
Title: Re: Some utilities for manipulating TI variables in PHP (including a tokenizer)
Post by: Deep Toaster on January 30, 2021, 11:51:31 pm
Update—it now supports most of the variable types I care to support (programs, appvars, numbers, lists, matrices, and pictures). I want to add apps too, but that means including a Rabin signer too...
Hmm, should we add a link to the tools menu?
maybe, though I think there are more useful tools I should add to that tools list first (it's missing ORG lol)