update README.md

This commit is contained in:
z7zmey 2018-02-04 21:49:53 +02:00
parent 048e281914
commit ce9d676229

View File

@ -25,13 +25,13 @@ package main
import (
"bytes"
"github.com/z7zmey/php-parser/php5"
"github.com/z7zmey/php-parser/php7"
"github.com/z7zmey/php-parser/visitor"
)
func main() {
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{
Indent: "",