1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-03-31 13:01:37 +08:00
parent 13579d56d7
commit acc990ac7f
2 changed files with 17 additions and 20 deletions

2
src/back.shy Normal file
View File

@ -0,0 +1,2 @@
# demo script

View File

@ -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)