Implemented for loops
This commit is contained in:
@ -28,6 +28,10 @@ func (f *Function) CompileASTNode(node ast.Node) error {
|
||||
f.Fold(node.Condition)
|
||||
return f.CompileIf(node)
|
||||
|
||||
case *ast.For:
|
||||
f.Fold(node.Head)
|
||||
return f.CompileFor(node)
|
||||
|
||||
case *ast.Loop:
|
||||
return f.CompileLoop(node)
|
||||
|
||||
|
Reference in New Issue
Block a user