Python 3 interpreter in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
375 B

package ast
type SimpleStatement struct {
BaseNode
Statements []*SmallStatement
}
func NewSimpleStatement() *SimpleStatement {
node := &SimpleStatement{}
node.initBaseNode(SIMPLE_STMT)
return node
}
func (node *SimpleStatement) StatementNode() {}
func (node *SimpleStatement) AppendSmallStatement(n *SmallStatement) {
node.Statements = append(node.Statements, n)
}