Versions in this module Expand all Collapse all v0 v0.10.6 Jun 15, 2023 v0.10.5 May 23, 2023 Changes in this version + func Compile(code string, compact, removeUnused bool) ([]byte, []error) + func CompileToTree(code string) (*ast.Tree, []error) + func Pretty(pretty bool) func(*Parser) error + func Size(size int) func(*Parser) error + type Compaction struct + func NewCompaction(tree *ast.Tree) Compaction + func (c *Compaction) Compact() + type Parser struct + Buffer string + Pretty bool + func (p *Parser) Init(options ...func(*Parser) error) error + func (p *Parser) Parse(rule ...int) error + func (p *Parser) PrintSyntaxTree() + func (p *Parser) Reset() + func (p *Parser) SprintSyntaxTree() string + func (p *Parser) WriteSyntaxTree(w io.Writer) + func (t *Parser) AST() *node32 + func (t *Parser) Add(rule pegRule, begin, end, index uint32) + func (t *Parser) PrettyPrintSyntaxTree(buffer string) + func (t *Parser) Print() + func (t *Parser) Tokens() []token32 + func (t *Parser) Trim(length uint32)