Reorganized file structure
This commit is contained in:
parent
dbe0a67dc5
commit
ff0b8ecb10
7 changed files with 95 additions and 58 deletions
12
src/build/ast/Loop.go
Normal file
12
src/build/ast/Loop.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue