Annotation of parser3/tests/176.html, revision 1.4

1.4     ! misha       1: @main[][sDir]
        !             2: $tClass[^table::create{sName
        !             3: a.p
        !             4: b.p
        !             5: c.p
        !             6: d.p
        !             7: }]
        !             8: 
        !             9: $sDir[176_dir]
        !            10: ^tClass.menu{
        !            11:        ^use[$sDir/$tClass.sName]
        !            12: }
        !            13: 
        !            14: 
        !            15: <table border="1" style="font-size: 80%">
        !            16: <tr>
        !            17:        <th rowspan="2"><br /></th>
        !            18:        <th colspan="3">var value</th>
        !            19: </tr>
        !            20: <tr>
        !            21:        <th>local</th>
        !            22:        <th>not local</th>
        !            23:        <th>self</th>
        !            24: </tr>
        !            25: 
        !            26: ^one[]
        !            27: ^two[]
        !            28: ^print[MAIN vars;$MAIN:CLASS]
        !            29: 
        !            30: 
        !            31: 
        !            32: ^hr[]
        !            33: $oa1[^a::create[]]
        !            34: ^add_methods[$oa1]
        !            35: 
        !            36: ^oa1.run[]
        !            37: ^print[first <b>a</b> instance (dynamic, has @OPTIONS in self);$oa1;$.bProcess(true)]
        !            38: 
        !            39: 
        !            40: $oa2[^a::create[]]
        !            41: ^print[second <b>a</b> instance without setting vars (dynamic, has @OPTIONS in self);$oa2;$.bProcess(true)]
        !            42: 
        !            43: ^print[<b>a</b> without setting vars (static, has @OPTIONS in self);$a:CLASS]
        !            44: 
        !            45: ^a:run[]
        !            46: ^print[<b>a</b> (static, has @OPTIONS in self);$a:CLASS]
        !            47: 
        !            48: 
        !            49: ^hr[]
        !            50: ^b:run[]
        !            51: ^print[<b>b</b> (static, no @OPTIONS in self);$b:CLASS]
        !            52: 
        !            53: 
        !            54: $ob[^b::create[]]
        !            55: ^add_methods[$ob]
        !            56: 
        !            57: ^ob.run[]
        !            58: ^print[<b>b</b> (dynamic, no @OPTIONS in self);$ob;$.bProcess(true)]
        !            59: 
        !            60: 
        !            61: 
        !            62: ^hr[]
        !            63: ^c:run[]
        !            64: ^print[<b>c</b> (static, child of 'a', no @OPTIONS in self);$c:CLASS]
        !            65: 
        !            66: 
        !            67: $oc[^c::create[]]
        !            68: ^oc.run[]
        !            69: ^print[<b>c</b> (dynamic, child of 'a', no @OPTIONS in self);$oc]
        !            70: 
        !            71: 
        !            72: 
        !            73: ^hr[]
        !            74: ^d:run[]
        !            75: ^print[<b>d</b> (static, child of 'a', has @OPTIONS in self);$d:CLASS]
        !            76: 
        !            77: 
        !            78: $od[^d::create[]]
        !            79: ^od.run[]
        !            80: ^print[<b>d</b> (dynamic, child of 'a', has @OPTIONS in self);$od]
        !            81: 
        !            82: 
        !            83: </table>
        !            84: 
        !            85: @one[][locals;one_1]
        !            86: $one_1[one_1]  ^rem{ local }
        !            87: $one_2[one_2]  ^rem{ local because of 'locals' }
        !            88: $self.one_3[one_3]     ^rem{ not local }
        !            89: 
        !            90: @two[][two_1]
        !            91: $two_1[two_1]  ^rem{ local }
        !            92: $two_2[two_2]  ^rem{ not local }
        !            93: $self.two_3[two_3]     ^rem{ not local }
        !            94: 
        !            95: @add_methods[uObject]
        !            96: ^process[$uObject]{@three[][locals^;three_1]
        !            97: ^$three_1[three_1]
        !            98: ^$three_2[three_2]
        !            99: ^$self.three_3[three_3]^#0A@four[][four_1]
        !           100: ^$four_1[four_1]
        !           101: ^$four_2[four_2]
        !           102: ^$self.four_3[four_3]
        !           103: }
        !           104: 
        !           105: @hr[sTitle]
        !           106: <tr>
        !           107: <td colspan="4">^if(def $sTitle){$sTitle}{<br />}</td>
        !           108: </tr>
        !           109: 
        !           110: @print[sTitle;uObject;hParam]
        !           111: ^hr[$sTitle]
        !           112: ^vars[Method with [^;locals^;];$uObject;one]
        !           113: 
        !           114: ^vars[Method without [^;locals^;];$uObject;two]
        !           115: 
        !           116: ^if($hParam.bProcess){
        !           117:        ^vars[Runtime added method with [^;locals^;];$uObject;three]
        !           118: 
        !           119:        ^vars[Runtime added method without [^;locals^;];$uObject;four]
        !           120: }
        !           121: 
        !           122: @vars[sTitle;uObject;sPrefix]
        !           123: <tr>
        !           124: <td>$sTitle</td>
        !           125: <td>^var[$uObject.[${sPrefix}_1]]</td>
        !           126: <td>^var[$uObject.[${sPrefix}_2]]</td>
        !           127: <td>^var[$uObject.[${sPrefix}_3]]</td>
        !           128: </tr>
        !           129: 
        !           130: @var[sValue]
        !           131: ^if(def $sValue){<b>$sValue</b>}{undef}

E-mail: