Implemented for loops

This commit is contained in:
2025-02-19 23:46:17 +01:00
parent 7922cff7ba
commit 45a36a645a
16 changed files with 142 additions and 120 deletions

View File

@ -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)