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 {
|
|
|
rule := &FileInput{}
|
|
|
rule.initBaseNode(symbol.FILE_INPUT)
|
|
|
rule.initListNode()
|
|
|
return rule
|
|
|
}
|
|
|
|
|
|
func (rule *FileInput) Append(n FileInputChild) { rule.ListNode.Append(n) }
|