data/TWiki/TWikiInfixNodeDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
     1 ---+ Package =TWiki::Infix::Node=
     2 
     3 Base class for node types generated by Infix::Parser. You don't *have* to use
     4 it, but it may be useful.
     5 
     6 
     7 %TOC%
     8 
     9 ---++ ClassMethod *newNode* <tt>($o,@p) -> \$if</tt>
    10 
    11 Construct a new parse node (contract with Infix::Parser)
    12 
    13 
    14 
    15 ---++ ClassMethod *newLeaf* <tt>($val,$type) -> \$if</tt>
    16 
    17 Construct a new terminal node (contract with Infix::Parser)
    18 
    19 
    20 
    21 ---++ ObjectMethod *evaluate* <tt>(...) -> $result</tt>
    22 
    23 Execute the parse node. The parameter array is passed on, by reference,
    24 to the evaluation functions.
    25 
    26