1 # <a name="Package <code>TWiki::Infix::Node="></a> Package =TWiki::Infix::Node
3 Base class for node types generated by Infix::Parser. You don't **have** to use it, but it may be useful.
7 <li><a href="#Package =TWiki::Infix::Node="> Package TWiki::Infix::Node</a><ul>
8 <li><a href="#ClassMethod <strong>newNode</strong> ($o,@p) ->"> ClassMethod newNode <tt>($o,@p) -> \$if</tt></a></li>
9 <li><a href="#ClassMethod <strong>newLeaf</strong> ($val,$typ"> ClassMethod newLeaf <tt>($val,$type) -> \$if</tt></a></li>
10 <li><a href="#ObjectMethod <strong>evaluate</strong> (...) ->"> ObjectMethod evaluate <tt>(...) -> $result</tt></a></li>
16 ## <a name="ClassMethod <strong>newNode</strong> ($o,@p) -"></a><a name="ClassMethod <strong>newNode</strong> ($o,@p) - "></a> [[ClassMethod]] **newNode** `($o,@p) -> \$if`
18 Construct a new parse node (contract with Infix::Parser)
20 ## <a name="ClassMethod <strong>newLeaf</strong> ($val,$typ"></a> [[ClassMethod]] **newLeaf** `($val,$type) -> \$if`
22 Construct a new terminal node (contract with Infix::Parser)
24 ## <a name="ObjectMethod <strong>evaluate</strong> (...) -"></a><a name="ObjectMethod <strong>evaluate</strong> (...) - "></a> [[ObjectMethod]] **evaluate** `(...) -> $result`
26 Execute the parse node. The parameter array is passed on, by reference, to the evaluation functions.