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
colas@0
     1
---+ Package =TWiki::Infix::Node=
colas@0
     2
colas@0
     3
Base class for node types generated by Infix::Parser. You don't *have* to use
colas@0
     4
it, but it may be useful.
colas@0
     5
colas@0
     6
colas@0
     7
%TOC%
colas@0
     8
colas@0
     9
---++ ClassMethod *newNode* <tt>($o,@p) -> \$if</tt>
colas@0
    10
colas@0
    11
Construct a new parse node (contract with Infix::Parser)
colas@0
    12
colas@0
    13
colas@0
    14
colas@0
    15
---++ ClassMethod *newLeaf* <tt>($val,$type) -> \$if</tt>
colas@0
    16
colas@0
    17
Construct a new terminal node (contract with Infix::Parser)
colas@0
    18
colas@0
    19
colas@0
    20
colas@0
    21
---++ ObjectMethod *evaluate* <tt>(...) -> $result</tt>
colas@0
    22
colas@0
    23
Execute the parse node. The parameter array is passed on, by reference,
colas@0
    24
to the evaluation functions.
colas@0
    25
colas@0
    26