src/Parser.php
public static function readSimple(string $filename, string $rootDir = '.', ParserInterface $parser = null): array
    {
        $data = ['@import' => $filename];

        $story = new Simple($rootDir);
        $parser = $parser ?? new Standard;

        $parser->parse($data, $story);
        return $data;
    }
public static function readSimple(string $filename, string $rootDir = '.', ParserInterface $parser = null): array
    {
        $data = ['@import' => $filename];

        $story = new Simple($rootDir);
        $parser = $parser ?? new Standard;

        $parser->parse($data, $story);
        return $data;
    }
public static function readSimple ( string $ filename , string $ rootDir = '.' , ParserInterface $ parser = null ) : array { $ data = [ '@import' => $ filename ] ; $ story = new Simple ( $ rootDir ) ; $ parser = $ parser ?? new Standard ; $ parser -> parse ( $ data , $ story ) ; return $ data ; }
Read a file without recursion

@param string $filename
@param string $rootDir
@param ParserInterface|null $parser
@return array
Read a file without recursion