Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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. // 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
|
|
fmt
command
|
|
parserdebug
command
|
|
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
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.