mirror of
https://github.com/Alvin-Zilverstand/femcode.git
synced 2026-04-22 03:06:18 +02: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