| 1 | Command Language
|
| 2 |
|
| 3 | [YSH Simple] typed-arg json write (x)
|
| 4 | lazy-expr-arg assert [42 === x]
|
| 5 | block-arg cd /tmp { echo $PWD }
|
| 6 | [YSH Assign] const var setvar setglobal
|
| 7 | [YSH Expr] equal = = 1 + 2*3
|
| 8 | call call mylist->append(42)
|
| 9 | [YSH Code] proc-def proc p (out Ref; pos, ...rest; n=0; b Block) {
|
| 10 | func-def func f(x; opt1, opt2) { return (x + 1) }
|
| 11 | ysh-return return (myexpr)
|
| 12 | [YSH Cond] ysh-case case (x) { *.py { echo 'python' } }
|
| 13 | ysh-if if (x > 0) { echo }
|
| 14 | [YSH Iter] ysh-while while (x > 0) { echo }
|
| 15 | ysh-for for i, item in (mylist) { echo }
|