Documentation ¶
Index ¶
- Variables
- type Atom
- func (*Atom) Descriptor() ([]byte, []int)
- 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 (*Atom) ProtoMessage()
- 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 (*Atom) XXX_OneofWrappers() []interface{}
- func (m *Atom) XXX_Size() int
- func (m *Atom) XXX_Unmarshal(b []byte) error
- type Atom_Choices
- type Atom_Regexp
- type Atom_Rulename
- type Atom_String_
- type Choice
- func (*Choice) Descriptor() ([]byte, []int)
- func (m *Choice) GetSequence() []*Sequence
- func (*Choice) ProtoMessage()
- 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
- func (*Flag) Descriptor() ([]byte, []int)
- func (m *Flag) GetSign() string
- func (m *Flag) GetToken() string
- func (*Flag) ProtoMessage()
- 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
- func (*Flags) Descriptor() ([]byte, []int)
- func (m *Flags) GetFlag() []*Flag
- func (*Flags) ProtoMessage()
- 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
- func (*Grammar) Descriptor() ([]byte, []int)
- func (m *Grammar) GetFlags() *Flags
- func (m *Grammar) GetName() string
- func (m *Grammar) GetRules() map[string]*Rule
- func (m *Grammar) GetStart() string
- func (*Grammar) ProtoMessage()
- 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
- func (*Quantifier) Descriptor() ([]byte, []int)
- 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 (*Quantifier) ProtoMessage()
- 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 (*Quantifier) XXX_OneofWrappers() []interface{}
- func (m *Quantifier) XXX_Size() int
- func (m *Quantifier) XXX_Unmarshal(b []byte) error
- type Quantifier_OnePlus
- type Quantifier_Optional
- type Quantifier_Separator
- type Quantifier_ZeroPlus
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)
- func (m *Rule) GetChoices() *Choice
- func (m *Rule) GetName() *RuleName
- func (*Rule) ProtoMessage()
- 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
- func (*RuleName) Descriptor() ([]byte, []int)
- func (m *RuleName) GetAlias() string
- func (m *RuleName) GetName() string
- func (*RuleName) ProtoMessage()
- 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
- func (*Sequence) Descriptor() ([]byte, []int)
- func (m *Sequence) GetTerm() []*Term
- func (*Sequence) ProtoMessage()
- 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
- func (*Term) Descriptor() ([]byte, []int)
- func (m *Term) GetAtom() *Atom
- func (m *Term) GetQuantifier() *Quantifier
- func (*Term) ProtoMessage()
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Base = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*Grammar)(nil), Field: 50000, Name: "sysl.base", Tag: "bytes,50000,opt,name=base", Filename: "grammar.proto", }
Functions ¶
This section is empty.
Types ¶
type Atom ¶
type Atom struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ("<" NAME ">")? ( string | regexp | "(" NestedBody ")" ) // // Types that are valid to be assigned to Union: // *Atom_String_ // *Atom_Regexp // *Atom_Rulename // *Atom_Choices Union isAtom_Union `protobuf_oneof:"union"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Atom) Descriptor ¶
func (*Atom) GetChoices ¶
func (*Atom) GetRulename ¶
func (*Atom) GetString_ ¶
func (*Atom) ProtoMessage ¶
func (*Atom) ProtoMessage()
func (*Atom) XXX_DiscardUnknown ¶
func (m *Atom) XXX_DiscardUnknown()
func (*Atom) XXX_OneofWrappers ¶
func (*Atom) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Atom) XXX_Unmarshal ¶
type Atom_Choices ¶
type Atom_Choices struct {
Choices *Choice `protobuf:"bytes,5,opt,name=choices,proto3,oneof"`
}
type Atom_Regexp ¶
type Atom_Regexp struct {
Regexp string `protobuf:"bytes,3,opt,name=regexp,proto3,oneof"`
}
type Atom_Rulename ¶
type Atom_Rulename struct {
Rulename *RuleName `protobuf:"bytes,4,opt,name=rulename,proto3,oneof"`
}
type Atom_String_ ¶
type Atom_String_ struct {
String_ string `protobuf:"bytes,2,opt,name=string,proto3,oneof"`
}
type Choice ¶
type Choice struct { // ("<" NAME ">")? Sequence:":" Sequence []*Sequence `protobuf:"bytes,1,rep,name=sequence,proto3" json:"sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Choice) Descriptor ¶
func (*Choice) GetSequence ¶
func (*Choice) ProtoMessage ¶
func (*Choice) ProtoMessage()
func (*Choice) XXX_DiscardUnknown ¶
func (m *Choice) XXX_DiscardUnknown()
func (*Choice) XXX_Marshal ¶
func (*Choice) XXX_Unmarshal ¶
type Flag ¶
type Flag struct { // <sign>/[-+]/ <token>NAME Sign string `protobuf:"bytes,1,opt,name=sign,proto3" json:"sign,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Flag) Descriptor ¶
func (*Flag) ProtoMessage ¶
func (*Flag) ProtoMessage()
func (*Flag) XXX_DiscardUnknown ¶
func (m *Flag) XXX_DiscardUnknown()
func (*Flag) XXX_Unmarshal ¶
type Flags ¶
type Flags struct { // "[" Flag:"," "]" Flag []*Flag `protobuf:"bytes,1,rep,name=flag,proto3" json:"flag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Flags) Descriptor ¶
func (*Flags) ProtoMessage ¶
func (*Flags) ProtoMessage()
func (*Flags) XXX_DiscardUnknown ¶
func (m *Flags) XXX_DiscardUnknown()
func (*Flags) XXX_Marshal ¶
func (*Flags) XXX_Unmarshal ¶
type Grammar ¶
type Grammar struct { // "!grammar" NAME ":" INDENT Rule* OUTDENT Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Flags *Flags `protobuf:"bytes,2,opt,name=flags,proto3" json:"flags,omitempty"` Rules map[string]*Rule `` /* 151-byte string literal not displayed */ Start string `protobuf:"bytes,4,opt,name=start,proto3" json:"start,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Grammar) Descriptor ¶
func (*Grammar) ProtoMessage ¶
func (*Grammar) ProtoMessage()
func (*Grammar) XXX_DiscardUnknown ¶
func (m *Grammar) XXX_DiscardUnknown()
func (*Grammar) XXX_Marshal ¶
func (*Grammar) XXX_Unmarshal ¶
type Quantifier ¶
type Quantifier struct { //( <opt>"?" | <zero_plus>"*" | <one_plus>"+" | ":" <separator>Atom )* // // Types that are valid to be assigned to Union: // *Quantifier_Optional // *Quantifier_ZeroPlus // *Quantifier_OnePlus // *Quantifier_Separator Union isQuantifier_Union `protobuf_oneof:"union"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Quantifier) Descriptor ¶
func (*Quantifier) Descriptor() ([]byte, []int)
func (*Quantifier) GetOnePlus ¶
func (m *Quantifier) GetOnePlus() *empty.Empty
func (*Quantifier) GetOptional ¶
func (m *Quantifier) GetOptional() *empty.Empty
func (*Quantifier) GetSeparator ¶
func (m *Quantifier) GetSeparator() *Atom
func (*Quantifier) GetUnion ¶
func (m *Quantifier) GetUnion() isQuantifier_Union
func (*Quantifier) GetZeroPlus ¶
func (m *Quantifier) GetZeroPlus() *empty.Empty
func (*Quantifier) ProtoMessage ¶
func (*Quantifier) ProtoMessage()
func (*Quantifier) Reset ¶
func (m *Quantifier) Reset()
func (*Quantifier) String ¶
func (m *Quantifier) String() string
func (*Quantifier) XXX_DiscardUnknown ¶
func (m *Quantifier) XXX_DiscardUnknown()
func (*Quantifier) XXX_Marshal ¶
func (m *Quantifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Quantifier) XXX_Merge ¶
func (m *Quantifier) XXX_Merge(src proto.Message)
func (*Quantifier) XXX_OneofWrappers ¶
func (*Quantifier) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Quantifier) XXX_Size ¶
func (m *Quantifier) XXX_Size() int
func (*Quantifier) XXX_Unmarshal ¶
func (m *Quantifier) XXX_Unmarshal(b []byte) error
type Quantifier_OnePlus ¶
type Quantifier_Optional ¶
type Quantifier_Separator ¶
type Quantifier_Separator struct {
Separator *Atom `protobuf:"bytes,4,opt,name=separator,proto3,oneof"`
}
type Quantifier_ZeroPlus ¶
type Rule ¶
type Rule struct { // RuleName Flags? ":" INDENT Body OUTDENT Name *RuleName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Choices *Choice `protobuf:"bytes,2,opt,name=choices,proto3" json:"choices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Rule) Descriptor ¶
func (*Rule) GetChoices ¶
func (*Rule) ProtoMessage ¶
func (*Rule) ProtoMessage()
func (*Rule) XXX_DiscardUnknown ¶
func (m *Rule) XXX_DiscardUnknown()
func (*Rule) XXX_Unmarshal ¶
type RuleName ¶
type RuleName struct { // NAME ":" INDENT Body OUTDENT Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RuleName) Descriptor ¶
func (*RuleName) ProtoMessage ¶
func (*RuleName) ProtoMessage()
func (*RuleName) XXX_DiscardUnknown ¶
func (m *RuleName) XXX_DiscardUnknown()
func (*RuleName) XXX_Marshal ¶
func (*RuleName) XXX_Unmarshal ¶
type Sequence ¶
type Sequence struct { // Term*:"|" Term []*Term `protobuf:"bytes,1,rep,name=term,proto3" json:"term,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Sequence) Descriptor ¶
func (*Sequence) ProtoMessage ¶
func (*Sequence) ProtoMessage()
func (*Sequence) XXX_DiscardUnknown ¶
func (m *Sequence) XXX_DiscardUnknown()
func (*Sequence) XXX_Marshal ¶
func (*Sequence) XXX_Unmarshal ¶
type Term ¶
type Term struct { // Atom Quantifier Atom *Atom `protobuf:"bytes,1,opt,name=atom,proto3" json:"atom,omitempty"` Quantifier *Quantifier `protobuf:"bytes,2,opt,name=quantifier,proto3" json:"quantifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Term) Descriptor ¶
func (*Term) GetQuantifier ¶
func (m *Term) GetQuantifier() *Quantifier
func (*Term) ProtoMessage ¶
func (*Term) ProtoMessage()
func (*Term) XXX_DiscardUnknown ¶
func (m *Term) XXX_DiscardUnknown()
func (*Term) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.