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.
 

23 lines
405 B

package ast
type SmallStatementNode interface {
Node
SmallStatementNode()
}
type SmallStatement struct {
BaseNode
Statement SmallStatementNode
}
func NewSmallStatement() *SmallStatement {
node := &SmallStatement{}
node.initBaseNode(SMALL_STMT)
return node
}
func (node *SmallStatement) Repr() []interface{} {
out := node.BaseNode.Repr()
out = append(out, node.Statement.Repr())
return out
}