Versions in this module Expand all Collapse all v0 v0.5.1 Jan 16, 2020 Changes in this version + const EOF + const EPSILON + const FIRST + const PopGrammar + const PushGrammar + var E_Base = &proto.ExtensionDesc + func GetTermMinMaxCount(t *Term) (int, int) + type Atom struct + Id int32 + Union isAtom_Union + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Atom) Descriptor() ([]byte, []int) + func (*Atom) ProtoMessage() + func (*Atom) XXX_OneofWrappers() []interface{} + func (m *Atom) GetChoices() *Choice + func (m *Atom) GetId() int32 + func (m *Atom) GetRegexp() string + func (m *Atom) GetRulename() *RuleName + func (m *Atom) GetString_() string + func (m *Atom) GetUnion() isAtom_Union + func (m *Atom) Reset() + func (m *Atom) String() string + func (m *Atom) XXX_DiscardUnknown() + func (m *Atom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Atom) XXX_Merge(src proto.Message) + func (m *Atom) XXX_Size() int + func (m *Atom) XXX_Unmarshal(b []byte) error + type Atom_Choices struct + Choices *Choice + type Atom_Regexp struct + Regexp string + type Atom_Rulename struct + Rulename *RuleName + type Atom_String_ struct + String_ string + type Choice struct + Sequence []*Sequence + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Choice) Descriptor() ([]byte, []int) + func (*Choice) ProtoMessage() + func (m *Choice) GetSequence() []*Sequence + func (m *Choice) Reset() + func (m *Choice) String() string + func (m *Choice) XXX_DiscardUnknown() + func (m *Choice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Choice) XXX_Merge(src proto.Message) + func (m *Choice) XXX_Size() int + func (m *Choice) XXX_Unmarshal(b []byte) error + type Flag struct + Sign string + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Flag) Descriptor() ([]byte, []int) + func (*Flag) ProtoMessage() + func (m *Flag) GetSign() string + func (m *Flag) GetToken() string + func (m *Flag) Reset() + func (m *Flag) String() string + func (m *Flag) XXX_DiscardUnknown() + func (m *Flag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Flag) XXX_Merge(src proto.Message) + func (m *Flag) XXX_Size() int + func (m *Flag) XXX_Unmarshal(b []byte) error + type Flags struct + Flag []*Flag + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Flags) Descriptor() ([]byte, []int) + func (*Flags) ProtoMessage() + func (m *Flags) GetFlag() []*Flag + func (m *Flags) Reset() + func (m *Flags) String() string + func (m *Flags) XXX_DiscardUnknown() + func (m *Flags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Flags) XXX_Merge(src proto.Message) + func (m *Flags) XXX_Size() int + func (m *Flags) XXX_Unmarshal(b []byte) error + type Grammar struct + Flags *Flags + Name string + Rules map[string]*Rule + Start string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func ParseEBNF(ebnfText string, name string, start string) *Grammar + func (*Grammar) Descriptor() ([]byte, []int) + func (*Grammar) ProtoMessage() + func (m *Grammar) GetFlags() *Flags + func (m *Grammar) GetName() string + func (m *Grammar) GetRules() map[string]*Rule + func (m *Grammar) GetStart() string + func (m *Grammar) Reset() + func (m *Grammar) String() string + func (m *Grammar) XXX_DiscardUnknown() + func (m *Grammar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Grammar) XXX_Merge(src proto.Message) + func (m *Grammar) XXX_Size() int + func (m *Grammar) XXX_Unmarshal(b []byte) error + type Quantifier struct + Union isQuantifier_Union + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Quantifier) Descriptor() ([]byte, []int) + func (*Quantifier) ProtoMessage() + func (*Quantifier) XXX_OneofWrappers() []interface{} + func (m *Quantifier) GetOnePlus() *empty.Empty + func (m *Quantifier) GetOptional() *empty.Empty + func (m *Quantifier) GetSeparator() *Atom + func (m *Quantifier) GetUnion() isQuantifier_Union + func (m *Quantifier) GetZeroPlus() *empty.Empty + func (m *Quantifier) Reset() + func (m *Quantifier) String() string + func (m *Quantifier) XXX_DiscardUnknown() + func (m *Quantifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Quantifier) XXX_Merge(src proto.Message) + func (m *Quantifier) XXX_Size() int + func (m *Quantifier) XXX_Unmarshal(b []byte) error + type Quantifier_OnePlus struct + OnePlus *empty.Empty + type Quantifier_Optional struct + Optional *empty.Empty + type Quantifier_Separator struct + Separator *Atom + type Quantifier_ZeroPlus struct + ZeroPlus *empty.Empty + type Rule struct + Choices *Choice + Name *RuleName + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Rule) Descriptor() ([]byte, []int) + func (*Rule) ProtoMessage() + func (m *Rule) GetChoices() *Choice + func (m *Rule) GetName() *RuleName + func (m *Rule) Reset() + func (m *Rule) String() string + func (m *Rule) XXX_DiscardUnknown() + func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Rule) XXX_Merge(src proto.Message) + func (m *Rule) XXX_Size() int + func (m *Rule) XXX_Unmarshal(b []byte) error + type RuleName struct + Alias string + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RuleName) Descriptor() ([]byte, []int) + func (*RuleName) ProtoMessage() + func (m *RuleName) GetAlias() string + func (m *RuleName) GetName() string + func (m *RuleName) Reset() + func (m *RuleName) String() string + func (m *RuleName) XXX_DiscardUnknown() + func (m *RuleName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RuleName) XXX_Merge(src proto.Message) + func (m *RuleName) XXX_Size() int + func (m *RuleName) XXX_Unmarshal(b []byte) error + type Sequence struct + Term []*Term + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Sequence) Descriptor() ([]byte, []int) + func (*Sequence) ProtoMessage() + func (m *Sequence) GetTerm() []*Term + func (m *Sequence) Reset() + func (m *Sequence) String() string + func (m *Sequence) XXX_DiscardUnknown() + func (m *Sequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Sequence) XXX_Merge(src proto.Message) + func (m *Sequence) XXX_Size() int + func (m *Sequence) XXX_Unmarshal(b []byte) error + type Term struct + Atom *Atom + Quantifier *Quantifier + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Term) Descriptor() ([]byte, []int) + func (*Term) ProtoMessage() + func (m *Term) GetAtom() *Atom + func (m *Term) GetQuantifier() *Quantifier + func (m *Term) Reset() + func (m *Term) String() string + func (m *Term) XXX_DiscardUnknown() + func (m *Term) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Term) XXX_Merge(src proto.Message) + func (m *Term) XXX_Size() int + func (m *Term) XXX_Unmarshal(b []byte) error