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.
|
|
package grammar
|
|
|
|
|
|
import "github.com/brettlangdon/gython/symbol"
|
|
|
|
|
|
type FileInputChild interface {
|
|
|
Node
|
|
|
fileInputChild()
|
|
|
}
|
|
|
|
|
|
type FileInput struct {
|
|
|
ListNode
|
|
|
}
|
|
|
|
|
|
func NewFileInput() *FileInput {
|
|
|
node := &FileInput{}
|
|
|
node.initBaseNode(symbol.FILE_INPUT)
|
|
|
node.initListNode()
|
|
|
return node
|
|
|
}
|
|
|
|
|
|
func (node *FileInput) Append(n FileInputChild) { node.ListNode.Append(n) }
|