Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + const AssocLeft + const AssocNone + const AssocNotSpecified + const AssocPrecedence + const AssocRight + type Action struct + Sym *Symbol + func (a Action) Kind() (typ, arg int) + type AssocDef struct + Associativity int + Syms []*Symbol + type Options struct + AllowConflicts bool + AllowTypeErrors bool + Closures bool + LA bool + Reducible bool + Report io.Writer + Resolved bool + XErrorsName string + XErrorsSrc []byte + type Parser struct + AssocDefs []*AssocDef + ConflictsRR int + ConflictsSR int + Definitions []*yparser.Definition + ErrorVerbose bool + LiteralStrings map[string]*Symbol + Prologue string + Rules []*Rule + Start string + States []*State + Syms map[string]*Symbol + Table [][]Action + Tail string + Union *ast.StructType + UnionSrc string + XErrors []XError + func ProcessAST(fset *token.FileSet, ast *yparser.Specification, opts *Options) (*Parser, error) + func ProcessFile(fset *token.FileSet, fname string, opts *Options) (*Parser, error) + func ProcessSource(fset *token.FileSet, fname string, src []byte, opts *Options) (*Parser, error) + func (p *Parser) AcceptsEmptyInput() bool + func (p *Parser) Reductions() map[int][]int + func (p *Parser) SkeletonXErrors(w io.Writer) error + type Rule struct + Action *yparser.Action + Associativity int + Body []interface{} + Components []string + ExplicitPrecSym *Symbol + MaxParentDlr int + Name *yparser.Token + Parent *Rule + PrecSym *Symbol + Precedence int + RuleNum int + Sym *Symbol + Token *yparser.Token + func (r *Rule) Actions() string + type State struct + func (s *State) Reduce0(r *Rule) []*Symbol + func (s *State) Syms0() ([]*Symbol, *Symbol) + type Symbol struct + Associativity int + ExplicitValue int + IsLeftRecursive bool + IsRightRecursive bool + IsTerminal bool + LiteralString string + Name string + Pos token.Pos + Precedence int + Rules []*Rule + Type string + Value int + func (s *Symbol) DerivesEmpty() bool + func (s *Symbol) IsEmpty() bool + func (s *Symbol) MinString() (r []*Symbol) + func (s *Symbol) String() string + type XError struct + Lookahead *Symbol + Msg string + Stack []int