diff --git a/examples/console_read.modal b/examples/console_read.modal new file mode 100644 index 0000000..0821fd9 --- /dev/null +++ b/examples/console_read.modal @@ -0,0 +1,5 @@ +<> ((read)) (?:) +<> ((send ?:)) () +<> (?x ?y catswap) ((?y ?x)) + +(send (You said: )) (read) send catswap \ No newline at end of file diff --git a/examples/test.modal b/examples/test.modal index 0821fd9..187b964 100644 --- a/examples/test.modal +++ b/examples/test.modal @@ -1,5 +1,5 @@ -<> ((read)) (?:) -<> ((send ?:)) () -<> (?x ?y catswap) ((?y ?x)) +<> (?x dup) (?x ?x) +<> (?x ?y swap) (?y ?x) +<> ( ?x pop) () -(send (You said: )) (read) send catswap \ No newline at end of file +(1 2 3) (4 5 6) swap pop dup \ No newline at end of file