Documentation ¶
Index ¶
- type JBaseNode
- type JBinOpNode
- type JBreakNode
- type JCallExprNode
- type JContinueNode
- type JForExprNode
- type JFuncDefNode
- type JIfExprNode
- type JIndexExprNode
- type JListNode
- type JMapNode
- type JNode
- type JNodeType
- type JNumberNode
- type JParser
- type JReturnNode
- type JStringNode
- type JUnaryOpNode
- type JVarAccessNode
- type JVarAssignNode
- type JVarIndexAssignNode
- type JWhileExprNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JBinOpNode ¶
JBinOpNode is binary operation node structure of AST
func (*JBinOpNode) String ¶
func (n *JBinOpNode) String() string
func (*JBinOpNode) Type ¶
func (n *JBinOpNode) Type() JNodeType
type JBreakNode ¶
type JBreakNode struct {
*JBaseNode
}
func (*JBreakNode) String ¶
func (n *JBreakNode) String() string
func (*JBreakNode) Type ¶
func (n *JBreakNode) Type() JNodeType
type JCallExprNode ¶
type JCallExprNode struct { *JBaseNode // JBaseNode fields are not use CallNode JNode ArgNodes []JNode }
JCallExprNode is call expression node structure of AST
func (*JCallExprNode) String ¶
func (n *JCallExprNode) String() string
func (*JCallExprNode) Type ¶
func (n *JCallExprNode) Type() JNodeType
type JContinueNode ¶
type JContinueNode struct {
*JBaseNode
}
func (*JContinueNode) String ¶
func (n *JContinueNode) String() string
func (*JContinueNode) Type ¶
func (n *JContinueNode) Type() JNodeType
type JForExprNode ¶
type JForExprNode struct { *JBaseNode // JBaseNode.Token is variable name token StartValueNode JNode EndValueNode JNode StepValueNode JNode BodyNode JNode IsBlockStatements bool }
JForExprNode is for expression node structure of AST
func (*JForExprNode) Type ¶
func (n *JForExprNode) Type() JNodeType
type JFuncDefNode ¶
type JFuncDefNode struct { *JBaseNode // JBaseNode.Token is function name token ArgTokens []*token.JToken BodyNode JNode }
JFuncDefNode is function definition node structure of AST
func (*JFuncDefNode) String ¶
func (n *JFuncDefNode) String() string
func (*JFuncDefNode) Type ¶
func (n *JFuncDefNode) Type() JNodeType
type JIfExprNode ¶
JIfExprNode is if expression node structure of AST
func (*JIfExprNode) String ¶ added in v0.1.1
func (n *JIfExprNode) String() string
func (*JIfExprNode) Type ¶
func (n *JIfExprNode) Type() JNodeType
type JIndexExprNode ¶
JIndexExprNode is index expression node structure of AST
func (*JIndexExprNode) String ¶
func (i *JIndexExprNode) String() string
func (*JIndexExprNode) Type ¶
func (i *JIndexExprNode) Type() JNodeType
type JNode ¶
type JNode interface { fmt.Stringer Type() JNodeType GetToken() *token.JToken GetStartPos() *common.JPosition GetEndPos() *common.JPosition }
JNode is general node interface of AST
type JNumberNode ¶
type JNumberNode struct {
*JBaseNode
}
JNumberNode is number node structure of AST
func (*JNumberNode) String ¶
func (n *JNumberNode) String() string
func (*JNumberNode) Type ¶
func (n *JNumberNode) Type() JNodeType
type JReturnNode ¶
func (*JReturnNode) String ¶
func (n *JReturnNode) String() string
func (*JReturnNode) Type ¶
func (n *JReturnNode) Type() JNodeType
type JStringNode ¶
type JStringNode struct {
*JBaseNode
}
JStringNode is string node structure of AST
func (*JStringNode) Type ¶
func (s *JStringNode) Type() JNodeType
type JUnaryOpNode ¶
JUnaryOpNode is unary operation node structure of AST
func (*JUnaryOpNode) String ¶
func (n *JUnaryOpNode) String() string
func (*JUnaryOpNode) Type ¶
func (n *JUnaryOpNode) Type() JNodeType
type JVarAccessNode ¶
type JVarAccessNode struct {
*JBaseNode
}
JVarAccessNode is variable access node structure of AST
func (*JVarAccessNode) String ¶
func (n *JVarAccessNode) String() string
func (*JVarAccessNode) Type ¶
func (n *JVarAccessNode) Type() JNodeType
type JVarAssignNode ¶
JVarAssignNode is variable assign node structure of AST
func (*JVarAssignNode) String ¶
func (n *JVarAssignNode) String() string
func (*JVarAssignNode) Type ¶
func (n *JVarAssignNode) Type() JNodeType
type JVarIndexAssignNode ¶
type JVarIndexAssignNode struct { *JVarAssignNode IndexExprNode *JIndexExprNode }
JVarIndexAssignNode is variable index assign node structure of AST
func (*JVarIndexAssignNode) String ¶
func (n *JVarIndexAssignNode) String() string
func (*JVarIndexAssignNode) Type ¶
func (n *JVarIndexAssignNode) Type() JNodeType
type JWhileExprNode ¶
JWhileExprNode is while expression node structure of AST
func (*JWhileExprNode) String ¶ added in v0.1.1
func (n *JWhileExprNode) String() string
func (*JWhileExprNode) Type ¶
func (n *JWhileExprNode) Type() JNodeType