Author Topic: New-style Program Editor for TI-83+?  (Read 12478 times)

0 Members and 1 Guest are viewing this topic.

Offline NonstickAtom785

  • LV3 Member (Next: 100)
  • ***
  • Posts: 78
  • Rating: +4/-0
  • Just live life. Cal-cu-lat-or style!
    • View Profile
Re: New-style Program Editor for TI-83+?
« Reply #15 on: January 30, 2020, 08:58:40 am »
Honestly, the most difficult part for me has been just displaying the content efficiently, and scrolling accordingly. The other difficult part (that I was able to do) is creating the routines for moving around memory to insert/delete/overwrite. All the fancy stuff like tokenizing (i.e., turning the text "Line(" into the "Line(" token) and re-tokenizing (i.e. displaying "WLine(" as "WhiteLine(") are pretty easy, but tedious. Making menus is difficult, but I already have some pretty general-purpose menu routines, so that is also just tedious.

Hmm so it was like a road block when creating the mem editing routines. All I'm thinking about right now is how Mimas works. You can choose what type of assembly program to compile for. Why not just make it so that you can just input the type of program and when you type a word it tokenizes it accordingly? Like a source editor/compiler. That would save the having to use the OS Tokens.(My main thought here is with Grammer. I don't know how hard it would be to imput the tokens according to text into an actual basic program :| )
Grammer2 is Good!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: New-style Program Editor for TI-83+?
« Reply #16 on: January 30, 2020, 09:03:21 am »
Oh, those were the easy parts. I was saying the hard part was the graphical part :P I already have tokenizing and stuff working for a few teat cases, like when you type the letters for Line(, it convert to the TI-BASIC Line( token and it has special tokens for Axe, and I could easily make "Text('" show up as the single token "TextNum " for Grammer mode :P

Offline E37

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +23/-0
  • Trial and error is the best teacher
    • View Profile
Re: New-style Program Editor for TI-83+?
« Reply #17 on: January 30, 2020, 08:17:28 pm »
I found the edge cases the worst. There are so many different special scenarios that break your nice logic. Ignoring those, a program editor is quite easy to write. I could probably whip up a fully functional editor is 2 days if I didn't have those as a roadblock.
I'm still around... kind of.