Documentation
¶
Index ¶
- func MustCompile(path string) (*regexp.Regexp, bool)
- func Pretty(pretty bool) func(*Peg) error
- func Size(size int) func(*Peg) error
- type Node
- type Path
- type Peg
- func (t *Peg) AST() *node32
- func (t *Peg) Add(rule pegRule, begin, end, index uint32)
- func (p *Peg) Execute()
- func (p *Peg) Init(options ...func(*Peg) error) error
- func (p *Peg) Parse(rule ...int) error
- func (t *Peg) PrettyPrintSyntaxTree(buffer string)
- func (t *Peg) Print()
- func (p *Peg) PrintSyntaxTree()
- func (p *Peg) Reset()
- func (p *Peg) SprintSyntaxTree() string
- func (t *Peg) Tokens() []token32
- func (t *Peg) Trim(length uint32)
- func (p *Peg) WriteSyntaxTree(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustCompile ¶
Turn path pattern into a regular expression
Types ¶
type Peg ¶
func (*Peg) PrettyPrintSyntaxTree ¶
func (t *Peg) PrettyPrintSyntaxTree(buffer string)
func (*Peg) PrintSyntaxTree ¶
func (p *Peg) PrintSyntaxTree()
func (*Peg) SprintSyntaxTree ¶
func (*Peg) WriteSyntaxTree ¶
Click to show internal directories.
Click to hide internal directories.