update README.md
This commit is contained in:
parent
1db53be4ae
commit
d30cf11d35
@ -30,8 +30,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
src := `<? echo "Hello world";`
|
src := bytes.NewBufferString(`<? echo "Hello world";`)
|
||||||
nodes, comments, positions := parser.Parse(bytes.NewBufferString(src), "example.php")
|
nodes, comments, positions := parser.Parse(src, "example.php")
|
||||||
|
|
||||||
visitor := visitor.Dumper{" | ", comments, positions}
|
visitor := visitor.Dumper{" | ", comments, positions}
|
||||||
nodes.Walk(visitor)
|
nodes.Walk(visitor)
|
||||||
|
Loading…
Reference in New Issue
Block a user