Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParseError ¶
type ParseError struct {
Line, Column int
File *ast.File
// contains filtered or unexported fields
}
ParseError represents an error found during parsing.
func (ParseError) Error ¶
func (p ParseError) Error() string
func (ParseError) String ¶
func (p ParseError) String() string
type Parser ¶
type Parser struct { Debug bool // Debug causes the parser to print all errors to stdout and relay any panic upon internal panic recovery. PrintTokens bool // PrintTokens causes the parser to print all tokens received from the lexer to stdout. MaxErrors int // Indicates the number of errors to allow before triggering a panic. The default is 10. FileSet *ast.FileSet // contains filtered or unexported fields }
Parser handles scanning through and parsing a PHP source string into an AST. It is configurable to have various types of debugging features.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Lexer transforms an input string into a stream of PHP tokens.
|
Lexer transforms an input string into a stream of PHP tokens. |
passes
|
|
Package query implements CSS/jQuery-esque selectors over a PHP AST
|
Package query implements CSS/jQuery-esque selectors over a PHP AST |
cmd/query
Command query implements a simple CLI for querying a PHP AST.
|
Command query implements a simple CLI for querying a PHP AST. |
Click to show internal directories.
Click to hide internal directories.