class Parser

This class allows to parse an aritmetic or a logical expression

Constants

PATTERN

Properties

protected array $lookup
private $text

Methods

replaceText($matches)

No description

parse(string $infix)

Parses and converts an infixed aritmetic or logical expression string into an Expression object.

Details

at line 75
private replaceText($matches)

Parameters

$matches

at line 89
Expression parse(string $infix)

Parses and converts an infixed aritmetic or logical expression string into an Expression object.

Parameters

string $infix The infixed expression string

Return Value

Expression The Expression object

Exceptions

Exception if an error has occurred