2018-04-10 23:59:57 +03:00
|
|
|
package parser
|
2018-04-10 20:15:15 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/z7zmey/php-parser/errors"
|
|
|
|
"github.com/z7zmey/php-parser/node"
|
|
|
|
)
|
|
|
|
|
2018-04-10 23:59:57 +03:00
|
|
|
// Parser interface
|
2018-04-10 20:15:15 +03:00
|
|
|
type Parser interface {
|
|
|
|
Parse() int
|
|
|
|
GetPath() string
|
|
|
|
GetRootNode() node.Node
|
|
|
|
GetErrors() []*errors.Error
|
2018-06-30 00:51:11 +03:00
|
|
|
WithMeta()
|
2018-04-10 20:15:15 +03:00
|
|
|
}
|