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.
 

37 lines
617 B

package ast
type TestChildNode interface {
Node
testChild()
}
type Test struct {
ParentNode
}
func NewTest() *Test {
node := &Test{}
node.initBaseNode(TEST)
return node
}
func (node *Test) testlistStarExpressionChild() {}
func (node *Test) SetChild(n TestChildNode) { node.ParentNode.SetChild(n) }
type OrTestChildNode interface {
Node
orTestChild()
}
type OrTest struct {
ListNode
}
func NewOrTest() *OrTest {
node := &OrTest{}
node.initBaseNode(OR_TEST)
return node
}
func (node *OrTest) testChild() {}
func (node *OrTest) Append(n OrTestChildNode) { node.ListNode.Append(n) }