modal/examples/io_repl.modal

11 lines
294 B
Plaintext
Raw Normal View History

2024-04-15 19:26:25 -04:00
?(?-) (This example demonstrates how to keep the runtime active between prompts.)
2024-04-15 17:59:48 -04:00
2024-04-10 23:52:17 -04:00
<> ((You said: quit\n) send) ((You quit.) print ')
<> (?: print ') (?:)
2024-04-14 20:33:42 -04:00
<> (?: send) (?: wait stdin)
<> (wait ?~) ((You said: ?~\n) send)
2024-04-10 23:52:17 -04:00
<> (' ?x) (?x ')
(Say something, or type "quit": \n) print '
2024-04-14 20:33:42 -04:00
wait stdin