Versions in this module Expand all Collapse all v0 v0.2.3 Jul 15, 2022 v0.2.2 Feb 27, 2018 Changes in this version + var DEBUG = false + func Generate(ast AST) (inst.Slice, error) + func LineCol(text []byte, tc int) (line int, col int) + type AST interface + Children func() []AST + Equals func(AST) bool + String func() string + func DesugarRanges(ast AST) AST + func NewAltMatch(a, b AST) AST + func NewAlternation(choice, alternation AST) AST + func NewApplyOp(op, atomic AST) AST + func NewConcat(char, concat AST) AST + func NewEOS() AST + func NewMatch(ast AST) AST + func NewOp(op string) AST + func Parse(text []byte) (AST, error) + type AltMatch struct + A AST + B AST + func (a *AltMatch) Children() []AST + func (a *AltMatch) Equals(o AST) bool + func (a *AltMatch) String() string + type Alternation struct + A AST + B AST + func (a *Alternation) Children() []AST + func (a *Alternation) Equals(o AST) bool + func (a *Alternation) String() string + type Character struct + Char byte + func NewCharacter(b byte) *Character + func (c *Character) Children() []AST + func (c *Character) Equals(o AST) bool + func (c *Character) String() string + type Concat struct + Items []AST + func (c *Concat) Children() []AST + func (c *Concat) Equals(o AST) bool + func (c *Concat) String() string + type EOS struct + func (e *EOS) Children() []AST + func (e *EOS) Equals(o AST) bool + func (e *EOS) String() string + type Match struct + func (m *Match) Children() []AST + func (m *Match) Equals(o AST) bool + func (m *Match) String() string + type Maybe struct + func (m *Maybe) Children() []AST + func (m *Maybe) Equals(o AST) bool + func (m *Maybe) String() string + type ParseError struct + Production string + Reason string + TC int + func Errorf(text []byte, tc int, format string, args ...interface{}) *ParseError + func (p *ParseError) Chain(e *ParseError) *ParseError + func (p *ParseError) Error() string + func (p *ParseError) String() string + type Plus struct + func (p *Plus) Children() []AST + func (p *Plus) Equals(o AST) bool + func (p *Plus) String() string + type Range struct + From byte + To byte + func NewAny() *Range + func NewRange(from, to byte) *Range + func (r *Range) Children() []AST + func (r *Range) Equals(o AST) bool + func (r *Range) String() string + type Star struct + func (s *Star) Children() []AST + func (s *Star) Equals(o AST) bool + func (s *Star) String() string