DocParser
in package
implements
DocParserInterface
Interfaces, Classes and Traits
Table of Contents
- $environment : EnvironmentInterface
- $inlineParserEngine : InlineParserEngine
- $maxNestingLevel : int|float
- __construct() : mixed
- parse() : Document
- handleLazyParagraphContinuation() : bool
- incorporateLine() : void
- parseBlocks() : void
- Parse blocks
- processInlines() : void
- resetContainer() : void
- Sets the container to the last open child (or its parent)
- setAndPropagateLastLineBlank() : void
Properties
$environment
private
EnvironmentInterface
$environment
$inlineParserEngine
private
InlineParserEngine
$inlineParserEngine
$maxNestingLevel
private
int|float
$maxNestingLevel
Methods
__construct()
public
__construct(EnvironmentInterface $environment) : mixed
Parameters
- $environment : EnvironmentInterface
Return values
mixed —parse()
public
parse(string $input) : Document
Parameters
- $input : string
Tags
Return values
Document —handleLazyParagraphContinuation()
private
handleLazyParagraphContinuation(ContextInterface $context, Cursor $cursor) : bool
Parameters
- $context : ContextInterface
- $cursor : Cursor
Return values
bool —incorporateLine()
private
incorporateLine(ContextInterface $context) : void
Parameters
- $context : ContextInterface
Return values
void —parseBlocks()
Parse blocks
private
parseBlocks(ContextInterface $context, Cursor $cursor) : void
Parameters
- $context : ContextInterface
- $cursor : Cursor
Return values
void —processInlines()
private
processInlines(ContextInterface $context) : void
Parameters
- $context : ContextInterface
Return values
void —resetContainer()
Sets the container to the last open child (or its parent)
private
resetContainer(ContextInterface $context, Cursor $cursor) : void
Parameters
- $context : ContextInterface
- $cursor : Cursor
Return values
void —setAndPropagateLastLineBlank()
private
setAndPropagateLastLineBlank(ContextInterface $context, Cursor $cursor) : void
Parameters
- $context : ContextInterface
- $cursor : Cursor