Package
Support for the conditions in %IF{} statements. Basically a simple
stack-based parser for infix expressions that generates a parse
tree that can subsequently be evaluated.
| ||||||||
Added: | ||||||||
> > | ||||||||
Construct a new if node factory. | ||||||||
Added: | ||||||||
> > | ||||||||
| ||||||||
Added: | ||||||||
> > | ||||||||
Each operator must have the following fields: prec (precedence) type (0 unary 1 binary) exec (ref to a function to execute). If not provided, the default set of boolean operations supported by %IF is used.
ObjectMethod evaluate ($twiki) -> $result | ||||||||
Added: | ||||||||
> > | ||||||||
Execute the parse node.
!!!new!!!
ObjectMethod parse ($string) -> \$if | ||||||||
Added: | ||||||||
> > | ||||||||
| ||||||||
Added: | ||||||||
> > | ||||||||
Construct a new search node by parsing the passed expression. Return the new object. |
Package
Support for the conditions in %IF{} statements. Basically a simple
stack-based parser for infix expressions that generates a parse
tree that can subsequently be evaluated.
|