update README.md
This commit is contained in:
parent
6ff2beafa3
commit
ac135f132d
@ -40,10 +40,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
src := bytes.NewBufferString(`<? echo "Hello world";`)
|
src := bytes.NewBufferString(`<? echo "Hello world";`)
|
||||||
nodes, comments, positions := php7.Parse(src, "example.php")
|
nodes, comments, positions, errors := php7.Parse(src, "example.php")
|
||||||
|
|
||||||
|
_ = errors
|
||||||
|
|
||||||
visitor := visitor.Dumper{
|
visitor := visitor.Dumper{
|
||||||
Writer: os.Stdout,
|
Writer: os.Stdout,
|
||||||
Indent: "",
|
Indent: "",
|
||||||
Comments: comments,
|
Comments: comments,
|
||||||
Positions: positions,
|
Positions: positions,
|
||||||
|
Loading…
Reference in New Issue
Block a user