From f2073fe7f4066f3155d1c5059f09838d1af0ce4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 10 Oct 2020 18:58:35 +0200 Subject: [PATCH] improve the rev example --- examples/stdio_rev.csn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/stdio_rev.csn b/examples/stdio_rev.csn index bb09044..a3db6a4 100644 --- a/examples/stdio_rev.csn +++ b/examples/stdio_rev.csn @@ -1,6 +1,7 @@ ( (mkbf r7) - (:r)(ld r0 @cin) + (:r)(ld r0 @cin (eof? (j :q))) + (ld @cout r0) (cmp r0 '\n' (eq? (j :q))) (bfpush @r7 r0) (j :r)