From 77452654a8a879b7b4012d73b8e3573ece73341c Mon Sep 17 00:00:00 2001 From: shylinux Date: Tue, 28 Mar 2023 22:38:14 +0800 Subject: [PATCH] opt yac --- src/demo.shy | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/demo.shy diff --git a/src/demo.shy b/src/demo.shy new file mode 100644 index 00000000..816f0502 --- /dev/null +++ b/src/demo.shy @@ -0,0 +1,17 @@ +# demo script + +let a = 1+2*3+1-0 + +func show { + if a > 2 { + system pwd + } + system pwd +} +show + +for a > 2 { + system pwd + let a = a - 1 +} +show