Documentation ¶
Index ¶
- type BoolNode
- type CharacterNode
- type CommentNode
- type DerefNode
- type FnLiteralNode
- type KeywordNode
- type ListNode
- type MapNode
- type MetadataNode
- type NewlineNode
- type NilNode
- type Node
- type NumberNode
- type ParseOpts
- type Pos
- type QuoteNode
- type ReaderCondNode
- type ReaderCondSpliceNode
- type ReaderDiscardNode
- type ReaderEvalNode
- type RegexNode
- type SetNode
- type StringNode
- type SymbolNode
- type SyntaxQuoteNode
- type TagNode
- type Tree
- type UnquoteNode
- type UnquoteSpliceNode
- type VarQuoteNode
- type VectorNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolNode ¶
func (*BoolNode) SetChildren ¶
type CharacterNode ¶
func (*CharacterNode) Children ¶
func (n *CharacterNode) Children() []Node
func (*CharacterNode) Parent ¶ added in v1.2.0
func (n *CharacterNode) Parent() Node
func (*CharacterNode) SetChildren ¶
func (n *CharacterNode) SetChildren([]Node)
func (*CharacterNode) String ¶
func (n *CharacterNode) String() string
type CommentNode ¶
func (*CommentNode) Children ¶
func (n *CommentNode) Children() []Node
func (*CommentNode) Parent ¶ added in v1.2.0
func (n *CommentNode) Parent() Node
func (*CommentNode) SetChildren ¶
func (n *CommentNode) SetChildren([]Node)
func (*CommentNode) String ¶
func (n *CommentNode) String() string
type DerefNode ¶
func (*DerefNode) SetChildren ¶
type FnLiteralNode ¶
func (*FnLiteralNode) Children ¶
func (n *FnLiteralNode) Children() []Node
func (*FnLiteralNode) Parent ¶ added in v1.2.0
func (n *FnLiteralNode) Parent() Node
func (*FnLiteralNode) SetChildren ¶
func (n *FnLiteralNode) SetChildren(nodes []Node)
func (*FnLiteralNode) String ¶
func (n *FnLiteralNode) String() string
type KeywordNode ¶
func (*KeywordNode) Children ¶
func (n *KeywordNode) Children() []Node
func (*KeywordNode) Parent ¶ added in v1.2.0
func (n *KeywordNode) Parent() Node
func (*KeywordNode) SetChildren ¶
func (n *KeywordNode) SetChildren([]Node)
func (*KeywordNode) String ¶
func (n *KeywordNode) String() string
type ListNode ¶
func (*ListNode) SetChildren ¶
type MapNode ¶
type MapNode struct { *Pos Namespace string // empty unless the map has a namespace: #:ns{:x 1} Nodes []Node // contains filtered or unexported fields }
func (*MapNode) SetChildren ¶
type MetadataNode ¶
func (*MetadataNode) Children ¶
func (n *MetadataNode) Children() []Node
func (*MetadataNode) Parent ¶ added in v1.2.0
func (n *MetadataNode) Parent() Node
func (*MetadataNode) SetChildren ¶
func (n *MetadataNode) SetChildren(nodes []Node)
func (*MetadataNode) String ¶
func (n *MetadataNode) String() string
type NewlineNode ¶
type NewlineNode struct { *Pos // contains filtered or unexported fields }
func (*NewlineNode) Children ¶
func (n *NewlineNode) Children() []Node
func (*NewlineNode) Parent ¶ added in v1.2.0
func (n *NewlineNode) Parent() Node
func (*NewlineNode) SetChildren ¶
func (n *NewlineNode) SetChildren([]Node)
func (*NewlineNode) String ¶
func (n *NewlineNode) String() string
type NilNode ¶
type NilNode struct { *Pos // contains filtered or unexported fields }
func (*NilNode) SetChildren ¶
type NumberNode ¶
func (*NumberNode) Children ¶
func (n *NumberNode) Children() []Node
func (*NumberNode) Parent ¶ added in v1.2.0
func (n *NumberNode) Parent() Node
func (*NumberNode) SetChildren ¶
func (n *NumberNode) SetChildren([]Node)
func (*NumberNode) String ¶
func (n *NumberNode) String() string
type ParseOpts ¶
type ParseOpts uint
ParseOpts is a bitset of parsing options for Reader and File.
const ( // IncludeNonSemantic makes the parser include non-semantic nodes: // CommentNodes and NewlineNodes. IncludeNonSemantic ParseOpts = 1 << iota // IgnoreCommentForm makes the parser ignore (comment ...) forms. // This only applies to forms that are semantic comments; a quoted node // such as '(comment "foo") would not be ignored. IgnoreCommentForm // IgnoreReaderDiscard makes the parser ignore forms preceded by #_. IgnoreReaderDiscard )
type QuoteNode ¶
func (*QuoteNode) SetChildren ¶
type ReaderCondNode ¶ added in v1.1.0
func (*ReaderCondNode) Children ¶ added in v1.1.0
func (n *ReaderCondNode) Children() []Node
func (*ReaderCondNode) Parent ¶ added in v1.2.0
func (n *ReaderCondNode) Parent() Node
func (*ReaderCondNode) SetChildren ¶ added in v1.1.0
func (n *ReaderCondNode) SetChildren(nodes []Node)
func (*ReaderCondNode) String ¶ added in v1.1.0
func (n *ReaderCondNode) String() string
type ReaderCondSpliceNode ¶ added in v1.1.0
func (*ReaderCondSpliceNode) Children ¶ added in v1.1.0
func (n *ReaderCondSpliceNode) Children() []Node
func (*ReaderCondSpliceNode) Parent ¶ added in v1.2.0
func (n *ReaderCondSpliceNode) Parent() Node
func (*ReaderCondSpliceNode) SetChildren ¶ added in v1.1.0
func (n *ReaderCondSpliceNode) SetChildren(nodes []Node)
func (*ReaderCondSpliceNode) String ¶ added in v1.1.0
func (n *ReaderCondSpliceNode) String() string
type ReaderDiscardNode ¶
func (*ReaderDiscardNode) Children ¶
func (n *ReaderDiscardNode) Children() []Node
func (*ReaderDiscardNode) Parent ¶ added in v1.2.0
func (n *ReaderDiscardNode) Parent() Node
func (*ReaderDiscardNode) SetChildren ¶
func (n *ReaderDiscardNode) SetChildren(nodes []Node)
func (*ReaderDiscardNode) String ¶
func (n *ReaderDiscardNode) String() string
type ReaderEvalNode ¶
func (*ReaderEvalNode) Children ¶
func (n *ReaderEvalNode) Children() []Node
func (*ReaderEvalNode) Parent ¶ added in v1.2.0
func (n *ReaderEvalNode) Parent() Node
func (*ReaderEvalNode) SetChildren ¶
func (n *ReaderEvalNode) SetChildren(nodes []Node)
func (*ReaderEvalNode) String ¶
func (n *ReaderEvalNode) String() string
type RegexNode ¶
func (*RegexNode) SetChildren ¶
type SetNode ¶
func (*SetNode) SetChildren ¶
type StringNode ¶
func (*StringNode) Children ¶
func (n *StringNode) Children() []Node
func (*StringNode) Parent ¶ added in v1.2.0
func (n *StringNode) Parent() Node
func (*StringNode) SetChildren ¶
func (n *StringNode) SetChildren([]Node)
func (*StringNode) String ¶
func (n *StringNode) String() string
type SymbolNode ¶
func (*SymbolNode) Children ¶
func (n *SymbolNode) Children() []Node
func (*SymbolNode) Parent ¶ added in v1.2.0
func (n *SymbolNode) Parent() Node
func (*SymbolNode) SetChildren ¶
func (n *SymbolNode) SetChildren([]Node)
func (*SymbolNode) String ¶
func (n *SymbolNode) String() string
type SyntaxQuoteNode ¶
func (*SyntaxQuoteNode) Children ¶
func (n *SyntaxQuoteNode) Children() []Node
func (*SyntaxQuoteNode) Parent ¶ added in v1.2.0
func (n *SyntaxQuoteNode) Parent() Node
func (*SyntaxQuoteNode) SetChildren ¶
func (n *SyntaxQuoteNode) SetChildren(nodes []Node)
func (*SyntaxQuoteNode) String ¶
func (n *SyntaxQuoteNode) String() string
type TagNode ¶
func (*TagNode) SetChildren ¶
type UnquoteNode ¶
func (*UnquoteNode) Children ¶
func (n *UnquoteNode) Children() []Node
func (*UnquoteNode) Parent ¶ added in v1.2.0
func (n *UnquoteNode) Parent() Node
func (*UnquoteNode) SetChildren ¶
func (n *UnquoteNode) SetChildren(nodes []Node)
func (*UnquoteNode) String ¶
func (n *UnquoteNode) String() string
type UnquoteSpliceNode ¶
func (*UnquoteSpliceNode) Children ¶
func (n *UnquoteSpliceNode) Children() []Node
func (*UnquoteSpliceNode) Parent ¶ added in v1.2.0
func (n *UnquoteSpliceNode) Parent() Node
func (*UnquoteSpliceNode) SetChildren ¶
func (n *UnquoteSpliceNode) SetChildren(nodes []Node)
func (*UnquoteSpliceNode) String ¶
func (n *UnquoteSpliceNode) String() string
type VarQuoteNode ¶
func (*VarQuoteNode) Children ¶
func (n *VarQuoteNode) Children() []Node
func (*VarQuoteNode) Parent ¶ added in v1.2.0
func (n *VarQuoteNode) Parent() Node
func (*VarQuoteNode) SetChildren ¶
func (n *VarQuoteNode) SetChildren([]Node)
func (*VarQuoteNode) String ¶
func (n *VarQuoteNode) String() string
type VectorNode ¶
func (*VectorNode) Children ¶
func (n *VectorNode) Children() []Node
func (*VectorNode) Parent ¶ added in v1.2.0
func (n *VectorNode) Parent() Node
func (*VectorNode) SetChildren ¶
func (n *VectorNode) SetChildren(nodes []Node)
func (*VectorNode) String ¶
func (n *VectorNode) String() string
Click to show internal directories.
Click to hide internal directories.