Created
November 12, 2011 16:45
-
-
Save co3k/1360791 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You need to clone https://github.com/nikic/PHP-Parser | |
require_once __DIR__.'/PHP-Parser/lib/PHPParser/Autoloader.php'; | |
PHPParser_Autoloader::register(); | |
class Teriyaki | |
{ | |
public function __construct(Teriyaki $teriyaki, $ebichiri) | |
{ | |
if ($teriyaki instanceof Teriyaki) { | |
var_dump('^^'); | |
} | |
} | |
} | |
$parser = new PHPParser_Parser; | |
$stmts = $parser->parse(new PHPParser_Lexer(file_get_contents(__FILE__))); | |
$dumper = new PHPParser_NodeDumper; | |
var_dump($dumper->dump($stmts)); |
Author
co3k
commented
Nov 12, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment