Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidClass = ParserError{"invalid class", 0} ErrInvalidObjectKind = ParserError{"invalid object kind", 0} ErrUnexpectedEOF = ParserError{"unexpected EOF", 0} ErrInconsistentSize = ParserError{"inconsistent size %d", 0} )
Functions ¶
This section is empty.
Types ¶
type ConstructedEntry ¶
type ConstructedEntry struct { MetaEntry Primitives []PrimitiveEntry Constructed []ConstructedEntry // contains filtered or unexported fields }
func (*ConstructedEntry) Next ¶
func (c *ConstructedEntry) Next() (*GenericEntry, bool, error)
func (*ConstructedEntry) ResetCursor ¶
func (c *ConstructedEntry) ResetCursor()
type GenericEntry ¶
type GenericEntry struct { Kind EntryKind Value interface{} }
func (GenericEntry) AsConstructed ¶
func (g GenericEntry) AsConstructed() ConstructedEntry
func (GenericEntry) AsMeta ¶
func (g GenericEntry) AsMeta() *MetaEntry
func (*GenericEntry) AsPrimitive ¶
func (g *GenericEntry) AsPrimitive() PrimitiveEntry
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Parse ¶
func (p *Parser) Parse() ([]*GenericEntry, error)
type ParserError ¶
type ParserError struct {
// contains filtered or unexported fields
}
func (ParserError) Error ¶
func (e ParserError) Error() string
type PrimitiveEntry ¶
Click to show internal directories.
Click to hide internal directories.