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.
 

21 lines
367 B

package grammar
import "github.com/brettlangdon/gython/symbol"
type FileInputChild interface {
Rule
fileInputChild()
}
type FileInput struct {
ListRule
}
func NewFileInput() *FileInput {
rule := &FileInput{}
rule.initBaseRule(symbol.FILE_INPUT)
rule.initListRule()
return rule
}
func (rule *FileInput) Append(n FileInputChild) { rule.ListRule.Append(n) }