mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-11 17:09:41 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
55 lines
695 B
Plaintext
55 lines
695 B
Plaintext
__halt_compiler
|
|
-----
|
|
<?php
|
|
|
|
$a;
|
|
__halt_compiler()
|
|
?>
|
|
Hallo World!
|
|
-----
|
|
array(
|
|
0: Expr_Variable(
|
|
name: a
|
|
)
|
|
1: Stmt_HaltCompiler(
|
|
remaining: Hallo World!
|
|
)
|
|
)
|
|
-----
|
|
<?php
|
|
|
|
$a;
|
|
__halt_compiler();Hallo World!
|
|
-----
|
|
array(
|
|
0: Expr_Variable(
|
|
name: a
|
|
)
|
|
1: Stmt_HaltCompiler(
|
|
remaining: Hallo World!
|
|
)
|
|
)
|
|
-----
|
|
<?php
|
|
|
|
namespace A;
|
|
$a;
|
|
__halt_compiler();
|
|
-----
|
|
array(
|
|
0: Stmt_Namespace(
|
|
name: Name(
|
|
parts: array(
|
|
0: A
|
|
)
|
|
)
|
|
stmts: array(
|
|
0: Expr_Variable(
|
|
name: a
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_HaltCompiler(
|
|
remaining:
|
|
)
|
|
) |