Gregwar\RST\Parser::parse PHP Метод

parse() публичный Метод

Parse a document and return a Document instance
public parse ( string $document ) : Gregwar\RST\Document
$document string The contents (string) of the document
Результат Gregwar\RST\Document The created document
    public function parse($document)
    {
        $this->getEnvironment()->reset();
        return $this->parseLocal($document);
    }

Usage Example

Пример #1
0
<?php

include '../../autoload.php';
use Gregwar\RST\Parser;
$parser = new Parser();
$document = $parser->parse(file_get_contents('document.rst'));
echo $document->renderDocument();
All Usage Examples Of Gregwar\RST\Parser::parse