1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 08:34:42 +01:00
liquid/chunks/ast.go
2017-06-26 09:43:09 -04:00

33 lines
374 B
Go

package chunks
import (
"io"
)
type AST interface {
Render(io.Writer, Context) error
}
type ASTSeq struct {
Children []AST
}
type ASTChunks struct {
chunks []Chunk
}
type ASTText struct {
chunk Chunk
}
type ASTObject struct {
chunk Chunk
}
type ASTControlTag struct {
chunk Chunk
cd *ControlTagDefinition
body []AST
branches []*ASTControlTag
}