Execute Brain****/TI-89 BASIC: Difference between revisions

m
Categorization now in master page
(add TI-89 BASIC as translation of TI-83)
 
m (Categorization now in master page)
Line 1:
[[Category:TI-89 BASIC]]{{implementation|Brainf***}}{{collection|RCBF}}
 
{{trans subpage|TI-83 BASIC}}
 
This implementation (in [[TI-89 BASIC]]) is basically a direct translation of the [[RCBF/TI-83 BASIC]]|TI-83 BASIC example]]. It makes use of some TI-89 features; the program and memory size are given as parameters, and all variables are declared local.
 
IO is performed with numbers; character IO could be done (using char() and ord() to convert) but the TI-89 has no cursor for user program IO, so it would be necessary to either implement one or buffer output until the program exits or waits for input, in order to display more than one character per line.
 
<!-- Should be switched to using a <lang> tag? -->
<pre style="font-family:'TI Uni'">Define bf(Raw) = Prgm
Local valid, raw, BFprog, inst, memory, ip, brackets, memp
Anonymous user