Version: 0.6.1
Expression/expression
expression
Build an expression parser from a term parser and an expression table.
function expression(Parser $term, array $expressionTable) : Parser
binaryOperator
A binary operator in an expression. The operands of the expression will be passed into $transform to produce the output of the expression parser.
function binaryOperator(Parser $symbol, callable $transform, string $label = "") : BinaryOperator
unaryOperator
A unary operator in an expression. The operands of the expression will be passed into $transform to produce the output of the expression parser.
function unaryOperator(Parser $symbol, callable $transform, string $label = "") : UnaryOperator
leftAssoc
function leftAssoc(BinaryOperator ...$operators) : LeftAssoc
rightAssoc
function rightAssoc(BinaryOperator ...$operators) : RightAssoc
nonAssoc
function nonAssoc(BinaryOperator $operator) : NonAssoc
prefix
function prefix(UnaryOperator ...$operators) : Prefix
postfix
function postfix(UnaryOperator ...$operators) : Postfix