|
|
1.1 moko 1: @main[]
2: $v[a^taint[ ]b]
3:
4: ^test[v1 v2 v3
5: $v d e ]
6:
7: ^test[
8: v1 $v v3
9: a b c]
10:
11: ^test[v1 $v v3
12: a b c
13: ]
14:
15: ^test[v1 v2 v3
16:
17: a b c]
18:
19: ^test[v1 v2 v3
20:
21: a b c
22:
23: c d e
24: ]
25:
1.3 ! moko 26: $t[^table::create[$t; $.reverse(true) ]]
! 27:
! 28: ^try-catch{
! 29: $t[^table::create[$t; $.offset[no-such-name] ]]
! 30: }
! 31: ^try-catch{
! 32: $t[^table::create[$t; $.no-such-option[yes] ]]
! 33: }
! 34: ^try-catch{
! 35: $t[^table::create{}[ $.no-such-option[yes] ]]
! 36: }
! 37: ^try-catch{
! 38: $t[^table::create{}[ $.separator[abc] ]]
! 39: }
! 40: ^try-catch{
! 41: $t[^table::create{}[ $.encloser[] ]]
! 42: }
! 43: ^try-catch{
! 44: $t[^table::create{}[ $.encloser[ю] ]]
! 45: }
! 46: ^try-catch{
! 47: $t[^table::create[no-such-name]{}]
! 48: }
! 49:
! 50:
1.1 moko 51: @test[data]
52: $t[^table::create{$data}]
53: ^json:string[$t; $.indent(true) ]