Interested in learning GTB? You are highly recommended to have basic knowledge of TI-BASIC 83/84 before attempting to learn GTB.
Also, here is the definition of code that is golfed.
Overview
The structure and basic principles of GTB are similar to those of TI-BASIC:
- Each of these characters remain one byte for byte counts
- If/Then/Else/End structure is kept
- Colons separate commands
Basic Program
Input a number; if the number is 101, print HELLO WORLD. Otherwise, keep looping till 101 is received as input.
TI-BASIC (ungolfed), 70 characters
:Lbl 1 :Input N :If N=101 :Then :Disp "HELLO WORLD" :Else :Goto 1 :End
TI-BASIC (golfed), 57 characters
:Lbl 1:Input N:If N=101:Goto 2:Goto 1:Lbl 2:"HELLO WORLD"
GTB, 29 characters
[`N@N--=1g;1]l;1"HELLO WORLD"
Your example of “golfed” TI-BASIC code is not very golfed. The following is 24 tokens/bytes:
Repeat N=101
Input N
End
“HELLO WORLD
This page is really old, from when I had just started learning about TI-Basic. I have a new website dedicated just to TI-Basic at TIBasic.com.