Documentation
¶
Index ¶
- func Pretty(pretty bool) func(*PreParser) error
- func Size(size int) func(*PreParser) error
- type PreParser
- func (t *PreParser) AST() *node32
- func (t *PreParser) Add(rule pegRule, begin, end, index uint32)
- func (ppr *PreParser) Debug(q string) error
- func (p *PreParser) Execute()
- func (p *PreParser) Init(options ...func(*PreParser) error) error
- func (ppr *PreParser) NewString(s string)
- func (p *PreParser) Parse(rule ...int) error
- func (t *PreParser) PrettyPrintSyntaxTree(buffer string)
- func (t *PreParser) Print()
- func (p *PreParser) PrintSyntaxTree()
- func (p *PreParser) Reset()
- func (p *PreParser) SprintSyntaxTree() string
- func (ppr *PreParser) TailIndex(s string) int
- func (t *PreParser) Tokens() []token32
- func (t *PreParser) Trim(length uint32)
- func (p *PreParser) WriteSyntaxTree(w io.Writer)
- type PreString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PreParser ¶
type PreParser struct { PreString Buffer string Pretty bool // contains filtered or unexported fields }
func (*PreParser) PrettyPrintSyntaxTree ¶
func (t *PreParser) PrettyPrintSyntaxTree(buffer string)
func (*PreParser) PrintSyntaxTree ¶
func (p *PreParser) PrintSyntaxTree()
func (*PreParser) SprintSyntaxTree ¶
func (*PreParser) WriteSyntaxTree ¶
Click to show internal directories.
Click to hide internal directories.