Finite state machine: Difference between revisions

m
→‎{{header|REXX}}: finished editing the REXX entry, hit SAVE instead of PREVIEW.
(→‎{{header|REXX}}: added the REXX)
m (→‎{{header|REXX}}: finished editing the REXX entry, hit SAVE instead of PREVIEW.)
Line 474:
{{trans|BASIC}}
 
<br>This is almost a one-for-one translate of the '''BASIC''' program, with the following differences:
::* the input allowed is either the capitaluppercase or lowercase version of the letter(s)
::* uppercase and lowercase letters are used for the output messages
::* messages have extra blanks for readability and options are spelled out
 
nvert text to a [hopefully valid] zkl program, compile and run it.
 
<lang rexx>/*REXX pgm simulates a FSM (Finite State Machine), input is recognized by pressing keys.*/
10: say "press D (deposit) or Q (quit)" /*display a prompt (message) to term. */
Line 520 ⟶ 518:
a
</pre>
 
 
 
 
=={{header|zkl}}==