by asveikau · 5mo ago · 0 comments
From my memory of using a TI-83 in the late 90s, I would not be surprised if the keypad UI injects tokens directly based on your keypress, rather than "tokenizing the text". I seem to recall, for example, you could not position the cursor in the middle of a BASIC token, and if you managed to type out the tokens it would not work; you needed to find the right menu item to inject the correct token.
Interestingly, you could print tokens in strings - e.g. you could Disp "Disp ".
The weird thing about TI-BASIC is how seemingly innocent changes in the input can cause huge performance regressions e.g. https://siraben.github.io/ti84p-re/sub-tibasic-for-paren.htm...
For(I,1,N
If 0
1
End
is much slower than For(I,1,N)
If 0
1
End