Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + const ActionValueDlrDlr + const ActionValueDlrNum + const ActionValueDlrTagDlr + const ActionValueDlrTagNum + const ActionValueGo + const COMMENT + const C_IDENTIFIER + const ERROR_VERBOSE + const IDENTIFIER + const LCURL + const LEFT + const MARK + const NONASSOC + const NUMBER + const PREC + const PRECEDENCE + const RCURL + const RIGHT + const START + const STRING_LITERAL + const TOKEN + const TYPE + const UNION + type Action struct + Token *Token + Token2 *Token + Values []*ActionValue + func (n *Action) Pos() token.Pos + func (n *Action) String() string + type ActionValue struct + Num int + Pos token.Pos + Src string + Tag string + Type int + type Definition struct + Case int + NameList *NameList + Nlist []*Name + ReservedWord *ReservedWord + Tag *Tag + Token *Token + Token2 *Token + Value string + func (n *Definition) Pos() token.Pos + func (n *Definition) String() string + type DefinitionList struct + Definition *Definition + DefinitionList *DefinitionList + func (n *DefinitionList) Pos() token.Pos + func (n *DefinitionList) String() string + type LiteralStringOpt struct + Token *Token + func (n *LiteralStringOpt) Pos() token.Pos + func (n *LiteralStringOpt) String() string + type Name struct + Case int + Identifier interface{} + LiteralStringOpt *LiteralStringOpt + Number int + Token *Token + Token2 *Token + func (n *Name) Pos() token.Pos + func (n *Name) String() string + type NameList struct + Case int + Name *Name + NameList *NameList + Token *Token + func (n *NameList) Pos() token.Pos + func (n *NameList) String() string + type Node interface + Pos func() token.Pos + type Precedence struct + Action *Action + Case int + Identifier interface{} + Precedence *Precedence + Token *Token + Token2 *Token + func (n *Precedence) Pos() token.Pos + func (n *Precedence) String() string + type ReservedWord struct + Case int + Token *Token + func (n *ReservedWord) Pos() token.Pos + func (n *ReservedWord) String() string + type Rule struct + Body []interface{} + Case int + Name *Token + Precedence *Precedence + RuleItemList *RuleItemList + Token *Token + func (n *Rule) Pos() token.Pos + func (n *Rule) String() string + type RuleItemList struct + Action *Action + Case int + RuleItemList *RuleItemList + Token *Token + func (n *RuleItemList) Pos() token.Pos + func (n *RuleItemList) String() string + type RuleList struct + Case int + Precedence *Precedence + Rule *Rule + RuleItemList *RuleItemList + RuleList *RuleList + Token *Token + func (n *RuleList) Pos() token.Pos + func (n *RuleList) String() string + type Specification struct + DefinitionList *DefinitionList + Defs []*Definition + RuleList *RuleList + Rules []*Rule + Tail *Tail + Token *Token + func Parse(fset *token.FileSet, fname string, src []byte) (s *Specification, err error) + func (n *Specification) Pos() token.Pos + func (n *Specification) String() string + type Tag struct + Token *Token + Token2 *Token + Token3 *Token + func (n *Tag) Pos() token.Pos + func (n *Tag) String() string + type Tail struct + Token *Token + Value string + func (n *Tail) Pos() token.Pos + func (n *Tail) String() string + type Token struct + Comments []string + File *token.File + Val string + func (t *Token) Pos() token.Pos + func (t *Token) Position() token.Position + func (t *Token) String() string