diff --git a/src/back.shy b/src/back.shy new file mode 100644 index 00000000..afed32ab --- /dev/null +++ b/src/back.shy @@ -0,0 +1,2 @@ +# demo script + diff --git a/src/demo.shy b/src/demo.shy index eaeeaa50..3350be29 100644 --- a/src/demo.shy +++ b/src/demo.shy @@ -1,25 +1,20 @@ # demo script -let a = system(ls bin) -let a = system(ls, etc) -return +cmd space + +let a = 1; + +let a, b = 1, 2 + +if a > 1 { pwd } + +if a, b = 2, 4; a > 1 { pwd } -let a = 1 -if a > 0 { pwd } -if a = 2; a > 0 { pwd } for a = 2; a < 5; a++ { pwd } -for a = 2; a < 5 { - pwd - let a = a + 1 -} -let a = 2 -for a < 5 { - pwd - let a = a + 1 -} -let a = 2 -for ;a < 5; { - pwd - let a = a + 1 -} +func show(a, b) (c, d) { + let c = system(ls, a) + return + pwd +} +let e, f = show(etc, bin)