Documentation

ExpressionParser
in package

Table of Contents

Properties

$depth  : int

Methods

parse()  : Node
parseArray()  : Node
parseBracketedExpression()  : Node
parseExpression()  : Node
Parse one or more expressions separated by operators.
parseFunction()  : Node
parseIndex()  : array<int, string>
parseInternal()  : Node
parseNumber()  : ValueNode
Expression := Number | quoted-string | FunctionName "(" ExpressionList ")" | Variable | BracketedExpression | Expression BinaryOp Expression
parseString()  : ValueNode
parseVariable()  : Node
resolveOperators()  : Node

Properties

Methods

parseNumber()

Expression := Number | quoted-string | FunctionName "(" ExpressionList ")" | Variable | BracketedExpression | Expression BinaryOp Expression

private parseNumber(Buffer $buffer) : ValueNode

Number = "-" PositiveNumber | PositiveNumber PositiveNumber = "\d+" ("." \d+)? Variable = "{" VariableName "}" BracketedExpression: = "(" Expression ")" FunctionName = "[a-Z][_a-Z0-9]" ExpressionList = Expression ("," Expression) VariableName = "[a-Z][_a-Z0-9.]*"

Parameters
$buffer : Buffer
Return values
ValueNode

        
On this page

Search results