SofaDoc

SofaDoc Map Usage

inc/expressionoperator.php

Contains the swExpressionOperator class to define operator parameters
File also popluates the global $swExpressionOperators array (only once for performance)

Classes

swExpressionOperator

Provides a class to hold parameters for the expression tokenizer and parser.
$label expression term as written by the user
$functionlabel function term used in RPN (starting with :)
$arity unary or binary
$precedence algrebra precedence rules
$associativity only left is used

Methods

__construct($lbl,$fn,$ar,$pr,$ass)

Properties

$label
$functionlabel
$arity
$precedence
$associativity

Used elements

Classes

swExpressionOperator

Globals

$swExpressionOperators

Variables

Short variables: $ar, $ass, $fn, $lbl, $pr