class TokenisedRegularExpression (View source)

A tokenised regular expression is a parser, similar to a regular expression, that acts on tokens rather than characters. This is a crucial component of the ManifestBuilder.

Properties

protected $expression

The regular expression definition

protected $firstMatch

The first expression to match

Methods

public
__construct($expression)

No description

public
findAll($tokens)

No description

public
matchFrom($tokenPos, $expressionPos, $tokens, $matches)

No description

Details

__construct($expression)

No description

Parameters

$expression

findAll($tokens)

No description

Parameters

$tokens

matchFrom($tokenPos, $expressionPos, $tokens, $matches)

No description

Parameters

$tokenPos
$expressionPos
$tokens
$matches