File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1- from copy import deepcopy
21import sys
2+ from copy import deepcopy
33
44from generated .MyParser import MyParser
55from generated .MyParserVisitor import MyParserVisitor
66from utils .values import Int , Float , String , Vector
77
88
99class 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 :
You can’t perform that action at this time.
0 commit comments