Parser
in package
implements
Parser
Interfaces, Classes and Traits
Table of Contents
- $document : DocumentNode
- $environment : Environment
- $markdownParser : DocParser
- $parsers : array<string|int, AbstractBlock>
- __construct() : mixed
- getDocument() : DocumentNode
- getEnvironment() : Environment
- parse() : DocumentNode
- parseDocument() : DocumentNode
- parseListBlock() : ListNode
- parseParagraph() : ParagraphNode
Properties
$document
private
DocumentNode
$document
$environment
private
Environment
$environment
$markdownParser
private
DocParser
$markdownParser
$parsers
private
array<string|int, AbstractBlock>
$parsers
Methods
__construct()
public
__construct(Environment $environment) : mixed
Parameters
- $environment : Environment
Return values
mixed —getDocument()
public
getDocument() : DocumentNode
Return values
DocumentNode —getEnvironment()
public
getEnvironment() : Environment
Return values
Environment —parse()
public
parse(string $contents) : DocumentNode
Parameters
- $contents : string
Return values
DocumentNode —parseDocument()
public
parseDocument(NodeWalker $walker, string $hash) : DocumentNode
Parameters
- $walker : NodeWalker
- $hash : string
Return values
DocumentNode —parseListBlock()
public
parseListBlock(NodeWalker $walker) : ListNode
Parameters
- $walker : NodeWalker
Return values
ListNode —parseParagraph()
public
parseParagraph(NodeWalker $walker) : ParagraphNode
Parameters
- $walker : NodeWalker