q/src/build/ast/Loop.go

13 lines
194 B
Go

package ast
import "fmt"
// Loop represents a block of repeatable statements.
type Loop struct {
Body AST
}
func (node *Loop) String() string {
return fmt.Sprintf("(loop %s)", node.Body)
}