q/src/core/CompileAST.go
2025-02-25 17:16:09 +01:00

19 lines
274 B
Go

package core
import (
"git.urbach.dev/cli/q/src/ast"
)
// CompileAST compiles an abstract syntax tree.
func (f *Function) CompileAST(tree ast.AST) error {
for _, node := range tree {
err := f.CompileASTNode(node)
if err != nil {
return err
}
}
return nil
}