Documentation
¶
Index ¶
- type BlockContent
- type BlockDirective
- func (b *BlockDirective) FindEntriesWithIdentifier(identifier string) []*Entry
- func (b *BlockDirective) GetEntries() []*Entry
- func (b *BlockDirective) GetEntriesByIdentifier(identifier string) []*Entry
- func (b *BlockDirective) GetFirstParameter() string
- func (b *BlockDirective) GetParametersExpressions() []string
- func (b *BlockDirective) SetEntries(entries []*Entry)
- func (b *BlockDirective) SetParameters(parameters []string)
- type Comment
- type Config
- type Directive
- type Entry
- type RawParser
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockContent ¶
type BlockDirective ¶
type BlockDirective struct {
Identifier string `"<"@Ident`
Parameters []*Value `@@*">"`
Content *BlockContent `@@"</"`
}
func (*BlockDirective) FindEntriesWithIdentifier ¶
func (b *BlockDirective) FindEntriesWithIdentifier(identifier string) []*Entry
func (*BlockDirective) GetEntries ¶
func (b *BlockDirective) GetEntries() []*Entry
func (*BlockDirective) GetEntriesByIdentifier ¶
func (b *BlockDirective) GetEntriesByIdentifier(identifier string) []*Entry
func (*BlockDirective) GetFirstParameter ¶
func (b *BlockDirective) GetFirstParameter() string
func (*BlockDirective) GetParametersExpressions ¶
func (b *BlockDirective) GetParametersExpressions() []string
func (*BlockDirective) SetEntries ¶
func (b *BlockDirective) SetEntries(entries []*Entry)
func (*BlockDirective) SetParameters ¶
func (b *BlockDirective) SetParameters(parameters []string)
type Config ¶
type Config struct {
Entries []*Entry `@@*`
}
func (*Config) GetEntries ¶
func (*Config) SetEntries ¶
type Entry ¶
type Entry struct {
StartNewLines []string `@NewLine*`
Comment *Comment `( @@`
Directive *Directive `| @@`
BlockDirective *BlockDirective `| @@ )`
EndNewLines []string `@NewLine*`
}
func (*Entry) GetIdentifier ¶
type RawParser ¶
type RawParser struct {
// contains filtered or unexported fields
}
func GetRawParser ¶
Click to show internal directories.
Click to hide internal directories.