public override object VisitBoolExp([NotNull] CoolParser.BoolExpContext context) { VisitExpr(context); dotcode += "\"" + context.GetType().Name.Substring(0, context.GetType().Name.Length - 7) + "\"[label=" + context.GetText() + "]" + "\n"; return(VisitChildren(context)); }
public override object VisitBoolExp([NotNull] CoolParser.BoolExpContext context) { return(new Constant(context.GetText().ToLower() == "true", p.Types["Bool"], GetCoord(context))); }