mirror of
https://github.com/Alvin-Zilverstand/femcode.git
synced 2026-03-07 05:47:49 +01:00
feat: Implement while loops
This commit is contained in:
@@ -75,3 +75,7 @@ class Interpreter:
|
||||
self.visit(node.if_block)
|
||||
elif node.else_block:
|
||||
self.visit(node.else_block)
|
||||
|
||||
def visit_WhileStatement(self, node):
|
||||
while self.visit(node.condition):
|
||||
self.visit(node.body)
|
||||
|
||||
Reference in New Issue
Block a user