1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-06-26 18:07:30 +08:00
ContextOS/src/demo.shy
2023-03-30 07:38:37 +08:00

25 lines
259 B
Plaintext

# demo script
let a = system(ls bin)
return
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
}