Author Topic: Some utilities for manipulating TI variables in PHP (including a tokenizer)  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
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 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, a class for reading and writing prgm variables that comes with a (pretty robust) tokenizer. Same syntax as IES (whence the original code) and TokenIDE (the original inspiration).




Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6229
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Hmm, should we add a link to the tools menu?
/e

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
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)