def visitExp5(self, ctx: BKITParser.ProgramContext): # index_exp if (ctx.getChildCount() == 1): return ctx.index_exp().accept(self) return UnaryOp(ctx.getChild(0).getText(), ctx.exp5().accept(self))
def visitAssign_head(self, ctx: BKITParser.ProgramContext): if (ctx.ID() != None): return Id(ctx.ID().getText()) return ctx.index_exp().accept(self)