Skip to content

Commit

Permalink
dropped indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Jun 25, 2015
1 parent 2f6eadc commit c9b9618
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ A Control-Flow-Graph implementation in Pure PHP.

To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
```

0 comments on commit c9b9618

Please # to comment.