interface Parseable (View source)

Defines a class that offers the parse() static method.

Methods

static Component|array|null
parse(Parser $parser, TokensList $list, array $options = [])

Parses the tokens contained in the given list in the context of the given parser.

Details

static Component|array|null parse(Parser $parser, TokensList $list, array $options = [])

Parses the tokens contained in the given list in the context of the given parser.

Parameters

Parser $parser

the parser that serves as context

TokensList $list

the list of tokens that are being parsed

array $options

parameters for parsing

Return Value

Component|array|null