VTExpressionParser
in package
Table of Contents
- $precedence : mixed
- __construct() : mixed
- atom() : mixed
- binOp() : mixed
- check() : type
- The function returns labels and values.
- checkSymbol() : mixed
- consume() : mixed
- consumeSymbol() : mixed
- expression() : mixed
- ifCondition() : mixed
- la() : VTExpressionTokenizer
- The function returns a queue of tokens.
- nextToken() : mixed
- unaryOp() : mixed
- binOpPrec() : mixed
Properties
$precedence
public
mixed
$precedence
= [['*', '/'], ['+', '-'], ['and', 'or'], ['==', '>=', '<=', '>', '<']]
Methods
__construct()
public
__construct(mixed $tokens) : mixed
Parameters
- $tokens : mixed
Return values
mixed —atom()
public
atom() : mixed
Return values
mixed —binOp()
public
binOp() : mixed
Return values
mixed —check()
The function returns labels and values.
public
check(VTExpressionToken $token, string $label, string $value) : type
Parameters
- $token : VTExpressionToken
- $label : string
- $value : string
Return values
type —checkSymbol()
public
checkSymbol(mixed $token, mixed $sym) : mixed
Parameters
- $token : mixed
- $sym : mixed
Return values
mixed —consume()
public
consume(mixed $label, mixed $value) : mixed
Parameters
- $label : mixed
- $value : mixed
Return values
mixed —consumeSymbol()
public
consumeSymbol(mixed $sym) : mixed
Parameters
- $sym : mixed
Return values
mixed —expression()
public
expression() : mixed
Return values
mixed —ifCondition()
public
ifCondition() : mixed
Return values
mixed —la()
The function returns a queue of tokens.
public
la([int $n = 1 ]) : VTExpressionTokenizer
Parameters
- $n : int = 1
Return values
VTExpressionTokenizer —nextToken()
public
nextToken() : mixed
Return values
mixed —unaryOp()
public
unaryOp() : mixed
Return values
mixed —binOpPrec()
private
binOpPrec(mixed $prec) : mixed
Parameters
- $prec : mixed