mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 04:14:44 +01:00
3701e02d32
Now the lexer is injected only once when creating the parser. Instead of $parser = new PHPParser_Parser; $parser->parse(new PHPParser_Lexer($code)); $parser->parse(new PHPParser_Lexer($code2)); you write: $parser = new PHPParser_Parser(new PHPParser_Lexer); $parser->parse($code); $parser->parse($code2); |
||
---|---|---|
.. | ||
Builder | ||
Lexer | ||
Node | ||
NodeVisitor | ||
Serializer | ||
Unserializer | ||
BuilderFactoryTest.php | ||
codeTest.php | ||
ErrorTest.php | ||
LexerTest.php | ||
NodeAbstractTest.php | ||
NodeDumperTest.php | ||
NodeTraverserTest.php | ||
TemplateLoaderTest.php | ||
TemplateTest.php |