commit
8b5f350f63
@ -32,6 +32,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/z7zmey/php-parser/php7"
|
"github.com/z7zmey/php-parser/php7"
|
||||||
"github.com/z7zmey/php-parser/visitor"
|
"github.com/z7zmey/php-parser/visitor"
|
||||||
@ -42,6 +43,7 @@ func main() {
|
|||||||
nodes, comments, positions := php7.Parse(src, "example.php")
|
nodes, comments, positions := php7.Parse(src, "example.php")
|
||||||
|
|
||||||
visitor := visitor.Dumper{
|
visitor := visitor.Dumper{
|
||||||
|
Writer: os.Stdout,
|
||||||
Indent: "",
|
Indent: "",
|
||||||
Comments: comments,
|
Comments: comments,
|
||||||
Positions: positions,
|
Positions: positions,
|
||||||
|
Loading…
Reference in New Issue
Block a user