Annotation of parser3/tests/342.html, revision 1.1

1.1     ! moko        1: @main[]
        !             2: $t[^table::create{c1   c2      c3}]
        !             3: ^for[i](1;4){
        !             4:        ^t.insert{a$i   b       c       d       e}
        !             5: }
        !             6: 
        !             7: code coverage:
        !             8: 
        !             9: ^t.menu{
        !            10:        ^t.line[] : $t.c1
        !            11:        ^if(^t.line[]==2){ ^break[] }
        !            12: }
        !            13: 
        !            14: ^t.menu{
        !            15:        ^t.line[] : $t.c1
        !            16:        ^if(^t.line[]==2){ ^break[] }
        !            17: }[,]
        !            18: 
        !            19: insert/delete during menu:
        !            20: 
        !            21: ^t.menu{
        !            22:        ^t.line[] : $t.c1
        !            23:        ^if(^t.line[]==1){
        !            24:                ^t.insert{more}
        !            25:                ^t.insert{more and more}
        !            26:        }
        !            27: }
        !            28: 
        !            29: ^show[1]
        !            30: 
        !            31: ^t.menu{
        !            32:        ^t.line[] : $t.c1
        !            33:        ^if(^t.line[]==1){ ^t.delete[] }
        !            34: }
        !            35: 
        !            36: 
        !            37: foreach exceptions test:
        !            38: 
        !            39: ^try-catch{^t.foreach{1}[2]{code}}
        !            40: ^try-catch{^t.foreach[1]{2}{code}}
        !            41: ^try-catch{^t.foreach[1;2;3]}
        !            42: 
        !            43: ^t.foreach[n;v]{
        !            44:        $n : $v.c1
        !            45:        ^if($n==1){
        !            46:                ^v.insert{ups}
        !            47:                ^t.insert{another ups}
        !            48:        }
        !            49: }
        !            50: 
        !            51: ^show[2]
        !            52: 
        !            53: ^t.foreach[n;v]{
        !            54:        $n : $v.c1
        !            55:        ^if($n==1){ ^v.delete[] }
        !            56: }[,]
        !            57: 
        !            58: ^show[3]
        !            59: 
        !            60: ^t.foreach[n;v]{
        !            61:        $n : $v.c1
        !            62:        ^if($n==1){ ^break[] }
        !            63: }
        !            64: 
        !            65: ^t.foreach[n;v]{
        !            66:        $n : $v.c1
        !            67:        ^if($n==1){ ^break[] }
        !            68: }[,]
        !            69: 
        !            70: 
        !            71: @show[n]
        !            72: $n : ^json:string[$t; $.table[array]  $.indent(true) ]

E-mail: