Documentation ¶
Index ¶
- type ArrayNode
- type Comment
- type CommentGroup
- type IdentNode
- type KVPairNode
- type LiteralNode
- type Node
- type NodeType
- type Nodebase
- type ObjectNode
- type Parser
- func (p *Parser) BeginPos() scanner.Position
- func (p *Parser) Err() error
- func (p *Parser) Expect(tokens ...rune) error
- func (p *Parser) ExpectError(tokens ...rune) error
- func (p *Parser) ExpectValue(s string) error
- func (p *Parser) Init(s *scanner.Scanner)
- func (p *Parser) Next() error
- func (p *Parser) StringLit() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentGroup ¶
type CommentGroup struct {
List []*Comment
}
func (*CommentGroup) Pos ¶
func (g *CommentGroup) Pos() scanner.Position
func (*CommentGroup) Text ¶
func (g *CommentGroup) Text() string
type KVPairNode ¶
type KVPairNode struct {
K, V Node
}
func NewKVPairNode ¶
func NewKVPairNode(k, v Node) *KVPairNode
func (KVPairNode) Pos ¶
func (n KVPairNode) Pos() scanner.Position
func (KVPairNode) Type ¶
func (n KVPairNode) Type() NodeType
type LiteralNode ¶
func NewLiteralNode ¶
func NewLiteralNode(pos scanner.Position, nodeType NodeType) *LiteralNode
func (LiteralNode) Type ¶
func (n LiteralNode) Type() NodeType
type Nodebase ¶
type Nodebase struct {
// contains filtered or unexported fields
}
func CreateNodebase ¶
type ObjectNode ¶
type ObjectNode struct { Nodebase Elements []KVPairNode }
func (ObjectNode) Type ¶
func (n ObjectNode) Type() NodeType
type Parser ¶
type Parser struct { Pos scanner.Position Tok rune Lit string Comments []*CommentGroup LeadComment *CommentGroup LineComment *CommentGroup // contains filtered or unexported fields }
func (*Parser) ExpectError ¶
func (*Parser) ExpectValue ¶
Click to show internal directories.
Click to hide internal directories.