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.
 

20 lines
422 B

package ast
type ExpressionStatement struct {
BaseNode
Expression *TestlistStartExpr
}
func NewExpressionStatement() *ExpressionStatement {
node := &ExpressionStatement{}
node.initBaseNode(EXPR_STMT)
return node
}
func (node *ExpressionStatement) SmallStatementNode() {}
func (node *ExpressionStatement) Repr() []interface{} {
out := node.BaseNode.Repr()
out = append(out, node.Expression.Repr())
return out
}