class CachingRecursiveParser extends RecursiveParser

Properties

protected array $callbacks from  RecursiveParser
protected array $groupMatches from  RecursiveParser
protected array $matchGroups from  RecursiveParser
protected string $regexp from  RecursiveParser
protected array $cache

Methods

mixed
parse(string $str, string $restrict = '')

Parse given string

void
setMatchers(array $matchers)

Set the list of matchers used by this parser

array
getArguments(array $matches, string $name)

Get the list of arguments produced by a regexp's match

array
getMatchersConfig(array $matchers)

Collect, normalize, sort and return the config for all matchers

static int
sortMatcherConfig(array $a, array $b)

Compare two matchers' config

Details

at line 22
mixed parse(string $str, string $restrict = '')

Parse given string

Parameters

string $str
string $restrict

Return Value

mixed

at line 35
void setMatchers(array $matchers)

Set the list of matchers used by this parser

Parameters

array $matchers

Return Value

void

in RecursiveParser at line 111
protected array getArguments(array $matches, string $name)

Get the list of arguments produced by a regexp's match

Parameters

array $matches

Regexp matches

string $name

Regexp name

Return Value

array

in RecursiveParser at line 145
protected array getMatchersConfig(array $matchers)

Collect, normalize, sort and return the config for all matchers

Parameters

array $matchers

Return Value

array

in RecursiveParser at line 182
static protected int sortMatcherConfig(array $a, array $b)

Compare two matchers' config

Parameters

array $a
array $b

Return Value

int