move Parser interface to parser package

This commit is contained in:
z7zmey
2018-04-10 23:59:57 +03:00
parent 04bd98eec2
commit 8d6affdd68
2 changed files with 21 additions and 19 deletions

18
parser/parser.go Normal file
View File

@@ -0,0 +1,18 @@
package parser
import (
"github.com/z7zmey/php-parser/comment"
"github.com/z7zmey/php-parser/errors"
"github.com/z7zmey/php-parser/node"
"github.com/z7zmey/php-parser/position"
)
// Parser interface
type Parser interface {
Parse() int
GetPath() string
GetRootNode() node.Node
GetErrors() []*errors.Error
GetComments() comment.Comments
GetPositions() position.Positions
}