Skip to content

Commit 4d7f495

Browse files
committed
Remove unnecessary functions
1 parent 7e2ee09 commit 4d7f495

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

interpreter.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
from copy import deepcopy
21
import sys
2+
from copy import deepcopy
33

44
from generated.MyParser import MyParser
55
from generated.MyParserVisitor import MyParserVisitor
66
from utils.values import Int, Float, String, Vector
77

88

99
class Interpreter(MyParserVisitor):
10-
def visitProgram(self, ctx: MyParser.ProgramContext):
11-
return self.visitChildren(ctx) # todo
12-
1310
def visitScopeStatement(self, ctx: MyParser.ScopeStatementContext):
1411
return self.visitChildren(ctx) # todo
1512

16-
def visitSimpleStatement(self, ctx: MyParser.SimpleStatementContext):
17-
return self.visitChildren(ctx) # todo
18-
1913
def visitIfThenElse(self, ctx: MyParser.IfThenElseContext):
2014
condition = self.visit(ctx.if_())
2115
if condition:

0 commit comments

Comments
 (0)