Improve 1998/fanf/try.sh
This commit is contained in:
1 parent
400a2019e5
commit
1537254600
1 file changed
+10
-1
+10
-1
@@ -15,7 +15,8 @@ make CC="$CC" all >/dev/null || exit 1
|
|||||||
# clear screen after compilation so that only the entry is shown
|
# clear screen after compilation so that only the entry is shown
|
||||||
clear
|
clear
|
||||||
|
|
||||||
echo "$ echo '((\a(\b(\c(d)))) e' | ./fanf" 1>&2
|
read -r -n 1 -p "Press any key to run: echo '((\a(\b(\c(d)))) e)' | ./fanf: "
|
||||||
|
echo 1>&2
|
||||||
echo '((\a(\b(\c(d)))) e)' | ./fanf
|
echo '((\a(\b(\c(d)))) e)' | ./fanf
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
@@ -25,6 +26,8 @@ echo "$ echo '
|
|||||||
(g x) (f x)
|
(g x) (f x)
|
||||||
) K K z
|
) K K z
|
||||||
)'|./fanf" 1>&2
|
)'|./fanf" 1>&2
|
||||||
|
read -r -n 1 -p "Press any key to continue: "
|
||||||
|
echo 1>&2
|
||||||
echo '
|
echo '
|
||||||
(\f\g\x
|
(\f\g\x
|
||||||
(
|
(
|
||||||
@@ -35,6 +38,8 @@ echo 1>&2
|
|||||||
|
|
||||||
|
|
||||||
echo "$ echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf" 1>&2
|
echo "$ echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf" 1>&2
|
||||||
|
read -r -n 1 -p "Press any key to continue: "
|
||||||
|
echo 1>&2
|
||||||
echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf
|
echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
@@ -45,6 +50,8 @@ echo "$ echo '
|
|||||||
(* n (f (- n 1)))
|
(* n (f (- n 1)))
|
||||||
)
|
)
|
||||||
)' | ./fanf" 1>&2
|
)' | ./fanf" 1>&2
|
||||||
|
read -r -n 1 -p "Press any key to continue: "
|
||||||
|
echo 1>&2
|
||||||
|
|
||||||
echo '(Y\f\n
|
echo '(Y\f\n
|
||||||
((= n 0)
|
((= n 0)
|
||||||
@@ -52,3 +59,5 @@ echo '(Y\f\n
|
|||||||
(* n (f (- n 1)))
|
(* n (f (- n 1)))
|
||||||
)
|
)
|
||||||
)' | ./fanf
|
)' | ./fanf
|
||||||
|
|
||||||
|
exit 0
|
||||||
Reference in new issue
Block a user