mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 01:27:30 +01:00
36 lines
632 B
Plaintext
36 lines
632 B
Plaintext
Error positions
|
|
-----
|
|
<?php foo
|
|
-----
|
|
Syntax error, unexpected EOF from 1:10 to 1:10
|
|
array(
|
|
0: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: foo
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
-----
|
|
<?php foo /* bar */
|
|
-----
|
|
Syntax error, unexpected EOF from 1:20 to 1:20
|
|
array(
|
|
0: Stmt_Expression(
|
|
expr: Expr_ConstFetch(
|
|
name: Name(
|
|
parts: array(
|
|
0: foo
|
|
)
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_Nop(
|
|
comments: array(
|
|
0: /* bar */
|
|
)
|
|
)
|
|
) |