示例#1
0
 def visitExp8(self, ctx: MCParser.Exp8Context):
     if ctx.exp():
         arr = self.visit(ctx.operand())
         idx = self.visit(ctx.exp())
         return ArrayCell(arr, idx)
     else:
         return self.visit(ctx.operand())
示例#2
0
 def visitExp8(self, ctx:MCParser.Exp8Context):
     return self.visit(ctx.operand())