class TypeParser

Parses Typhax type expressions.

Methods

static  TypeParser
create()

Create a new type parser.

parse( string $source, integer $offset)

Parse the supplied source into a type.

Details

at line 51
static TypeParser create()

Create a new type parser.

Return Value

TypeParser The parser.

at line 80
Type parse( string $source, integer $offset)

Parse the supplied source into a type.

The $offset argument will be set to the final parsing offset upon completion.

Parameters

string $source The source.
integer $offset &$offset The offset to start parsing at.

Return Value

Type The parsed type.

Exceptions

ParseException If the source cannot be parsed.