From 55428637a8536764a82693c19d76e61a6f557627 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 20 Oct 2024 23:00:40 +0300 Subject: add command continuations --- examples/echo.lyn | 2 ++ examples/multiline.lyn | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 examples/echo.lyn create mode 100644 examples/multiline.lyn (limited to 'examples') diff --git a/examples/echo.lyn b/examples/echo.lyn new file mode 100644 index 0000000..bfaa9ae --- /dev/null +++ b/examples/echo.lyn @@ -0,0 +1,2 @@ +use-modules (ice-9 readline) +display (readline "Type something: ") diff --git a/examples/multiline.lyn b/examples/multiline.lyn new file mode 100644 index 0000000..8cb0653 --- /dev/null +++ b/examples/multiline.lyn @@ -0,0 +1,3 @@ +if (< 10 20) \ + {display "math works"; newline} \ + {display "what"; newline} -- cgit v1.2.3