Execute Brain****/TI-83 BASIC: Difference between revisions
Content added Content deleted
(Some extra explanation) |
(Shortened initial L1 definition (it doesn't have to be huge, the array expands dynamically) and added negative bracket number checker (e.g. ][][ would pass through the old check, but isn't valid)) |
||
Line 9: | Line 9: | ||
"+-.,[]<>"→Str2 |
"+-.,[]<>"→Str2 |
||
" "→Str3 |
" "→Str3 |
||
{ |
{0}→L<sub>1</sub> |
||
" "→Str5 |
" "→Str5 |
||
Input Str1 |
Input Str1 |
||
Line 21: | Line 21: | ||
If sub(Str1,A,1)="]" |
If sub(Str1,A,1)="]" |
||
B-1→B |
B-1→B |
||
If B<0:Then |
|||
Disp "UNEVEN BRACKETS" |
|||
Stop |
|||
End |
|||
End |
End |
||
End |
End |