Documentation
¶
Index ¶
- Constants
- type Appender
- type AssignmentNode
- type BaseNode
- type BinaryNode
- func NewDivNode(pos int) *BinaryNode
- func NewEqualsNode(pos int) *BinaryNode
- func NewFetchArrayElementNode(pos int) *BinaryNode
- func NewGTNode(pos int) *BinaryNode
- func NewLTNode(pos int) *BinaryNode
- func NewMinusNode(pos int) *BinaryNode
- func NewMulNode(pos int) *BinaryNode
- func NewNotEqualsNode(pos int) *BinaryNode
- func NewPlusNode(pos int) *BinaryNode
- func NewRangeNode(pos int, start, end Node) *BinaryNode
- type ElseNode
- type FetchFieldNode
- type FilterNode
- type ForeachNode
- type FunCallNode
- type IfNode
- type IncludeNode
- type ListNode
- type LocalVarNode
- type LoopNode
- type MacroNode
- type MethodCallNode
- type Node
- type NodeType
- type NumberNode
- type TextNode
- type UnaryNode
- type WhileNode
- type WrapperNode
Constants ¶
View Source
const DefaultMaxIterations = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentNode ¶
type AssignmentNode struct { BaseNode Assignee *LocalVarNode Expression Node }
func NewAssignmentNode ¶
func NewAssignmentNode(pos int, symbol string) *AssignmentNode
func (*AssignmentNode) Copy ¶
func (n *AssignmentNode) Copy() Node
func (*AssignmentNode) Visit ¶
func (n *AssignmentNode) Visit(c chan Node)
type BaseNode ¶
type BaseNode struct { NodeType // String() is delegated here // contains filtered or unexported fields }
BaseNode is the most basic node with no extra data attached to it
type BinaryNode ¶
func NewDivNode ¶
func NewDivNode(pos int) *BinaryNode
func NewEqualsNode ¶
func NewEqualsNode(pos int) *BinaryNode
func NewFetchArrayElementNode ¶
func NewFetchArrayElementNode(pos int) *BinaryNode
func NewGTNode ¶
func NewGTNode(pos int) *BinaryNode
func NewLTNode ¶
func NewLTNode(pos int) *BinaryNode
func NewMinusNode ¶
func NewMinusNode(pos int) *BinaryNode
func NewMulNode ¶
func NewMulNode(pos int) *BinaryNode
func NewNotEqualsNode ¶
func NewNotEqualsNode(pos int) *BinaryNode
func NewPlusNode ¶
func NewPlusNode(pos int) *BinaryNode
func NewRangeNode ¶
func NewRangeNode(pos int, start, end Node) *BinaryNode
func (*BinaryNode) Copy ¶
func (n *BinaryNode) Copy() Node
func (*BinaryNode) Visit ¶
func (n *BinaryNode) Visit(c chan Node)
type ElseNode ¶
func NewElseNode ¶
type FetchFieldNode ¶
func NewFetchFieldNode ¶
func NewFetchFieldNode(pos int, container Node, field string) *FetchFieldNode
func (*FetchFieldNode) Copy ¶
func (n *FetchFieldNode) Copy() Node
func (*FetchFieldNode) Visit ¶
func (n *FetchFieldNode) Visit(c chan Node)
type FilterNode ¶
func NewFilterNode ¶
func NewFilterNode(pos int, name string, child Node) *FilterNode
func (*FilterNode) Copy ¶
func (n *FilterNode) Copy() Node
func (*FilterNode) Visit ¶
func (n *FilterNode) Visit(c chan Node)
type ForeachNode ¶
func NewForeachNode ¶
func NewForeachNode(pos int, symbol string) *ForeachNode
func (*ForeachNode) Copy ¶
func (n *ForeachNode) Copy() Node
func (*ForeachNode) String ¶
func (n *ForeachNode) String() string
func (*ForeachNode) Visit ¶
func (n *ForeachNode) Visit(c chan Node)
type FunCallNode ¶
func NewFunCallNode ¶
func NewFunCallNode(pos int, invocant Node, args *ListNode) *FunCallNode
func (*FunCallNode) Copy ¶
func (n *FunCallNode) Copy() Node
func (*FunCallNode) Visit ¶
func (n *FunCallNode) Visit(c chan Node)
type IncludeNode ¶
func NewIncludeNode ¶
func NewIncludeNode(pos int, include Node) *IncludeNode
func (*IncludeNode) AppendAssignment ¶
func (n *IncludeNode) AppendAssignment(a Node)
func (*IncludeNode) Copy ¶
func (n *IncludeNode) Copy() Node
func (*IncludeNode) Visit ¶
func (n *IncludeNode) Visit(c chan Node)
type ListNode ¶
func NewListNode ¶
func NewPrintNode ¶
func NewPrintRawNode ¶
func NewRootNode ¶
func NewRootNode() *ListNode
type LocalVarNode ¶
func NewLocalVarNode ¶
func NewLocalVarNode(pos int, symbol string, idx int) *LocalVarNode
func (*LocalVarNode) Copy ¶
func (n *LocalVarNode) Copy() Node
func (*LocalVarNode) String ¶
func (n *LocalVarNode) String() string
func (*LocalVarNode) Visit ¶
func (n *LocalVarNode) Visit(c chan Node)
type LoopNode ¶
type LoopNode struct { *ListNode // Body of the loop Condition Node // MaxIteration int // Max number of iterations }
func NewLoopNode ¶
type MacroNode ¶
type MacroNode struct { *ListNode Name string LocalVar *LocalVarNode Arguments []*LocalVarNode }
func NewMacroNode ¶
func (*MacroNode) AppendArg ¶
func (n *MacroNode) AppendArg(arg *LocalVarNode)
type MethodCallNode ¶
func NewMethodCallNode ¶
func NewMethodCallNode(pos int, invocant Node, method string, args *ListNode) *MethodCallNode
func (*MethodCallNode) Copy ¶
func (n *MethodCallNode) Copy() Node
func (*MethodCallNode) Visit ¶
func (n *MethodCallNode) Visit(c chan Node)
type NumberNode ¶
func NewFloatNode ¶
func NewFloatNode(pos int, v float64) *NumberNode
func NewIntNode ¶
func NewIntNode(pos int, v int64) *NumberNode
func NewNumberNode ¶
func NewNumberNode(pos int, num reflect.Value) *NumberNode
func (*NumberNode) Copy ¶
func (n *NumberNode) Copy() Node
func (*NumberNode) Visit ¶
func (n *NumberNode) Visit(c chan Node)
type WrapperNode ¶
type WrapperNode struct { *ListNode WrapperName string // XXX need to make this configurable. currently it's only "content" // WrapInto string AssignmentNodes []Node }
func NewWrapperNode ¶
func NewWrapperNode(pos int, template string) *WrapperNode
func (*WrapperNode) AppendAssignment ¶
func (n *WrapperNode) AppendAssignment(a Node)
func (*WrapperNode) Copy ¶
func (n *WrapperNode) Copy() Node
func (*WrapperNode) Visit ¶
func (n *WrapperNode) Visit(c chan Node)
Click to show internal directories.
Click to hide internal directories.