Versions in this module Expand all Collapse all v0 v0.2.2 Jun 5, 2019 Changes in this version + func Verify(grammar Grammar, start string) error + type Alternative []Expression + func (x Alternative) Pos() scanner.Position + type Bad struct + Error string + TokPos scanner.Position + func (x *Bad) Pos() scanner.Position + type Expression interface + Pos func() scanner.Position + type Grammar struct + Index map[string]*Production + Productions []*NamedProduction + func Parse(filename string, src io.Reader) (Grammar, error) + type Group struct + Body Expression + Lparen scanner.Position + func (x *Group) Pos() scanner.Position + type Name struct + String string + StringPos scanner.Position + func (x *Name) Pos() scanner.Position + type NamedProduction struct + Name string + Production *Production + type Option struct + Body Expression + Lbrack scanner.Position + func (x *Option) Pos() scanner.Position + type Production struct + Expr Expression + Name *Name + func (x *Production) Pos() scanner.Position + type Range struct + Begin *Token + End *Token + Exclude Expression + func (x *Range) Pos() scanner.Position + type Repetition struct + Body Expression + Lbrace scanner.Position + func (x *Repetition) Pos() scanner.Position + type Sequence []Expression + func (x Sequence) Pos() scanner.Position + type Token struct + String string + StringPos scanner.Position + func (x *Token) Pos() scanner.Position