update README.md
This commit is contained in:
parent
048e281914
commit
ce9d676229
@ -25,13 +25,13 @@ package main
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
"github.com/z7zmey/php-parser/php5"
|
"github.com/z7zmey/php-parser/php7"
|
||||||
"github.com/z7zmey/php-parser/visitor"
|
"github.com/z7zmey/php-parser/visitor"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
src := bytes.NewBufferString(`<? echo "Hello world";`)
|
src := bytes.NewBufferString(`<? echo "Hello world";`)
|
||||||
nodes, comments, positions := php5.Parse(src, "example.php")
|
nodes, comments, positions := php7.Parse(src, "example.php")
|
||||||
|
|
||||||
visitor := visitor.Dumper{
|
visitor := visitor.Dumper{
|
||||||
Indent: "",
|
Indent: "",
|
||||||
|
Loading…
Reference in New Issue
Block a user