public LessNode(CoolParser.LessExpContext context, Node s) : base(s.Childs) { this.s = s; this.context = context; this.lhs = s.Childs[0]; this.rhs = s.Childs[1]; }
public override object VisitLessExp([NotNull] CoolParser.LessExpContext context) { Expression left = (Expression)Visit(context.expresion()[0]); Expression right = (Expression)Visit(context.expresion()[1]); return(new BinCompExp(left, right, BoolOp.lesser, GetCoord(context))); }
public override Node VisitLessExp([NotNull] CoolParser.LessExpContext context) { var s = VisitChildren(context); return(new LessNode(context, s)); }
public override object VisitLessExp([NotNull] CoolParser.LessExpContext context) { VisitExpr(context); dotcode += "\"" + context.GetType().Name.Substring(0, context.GetType().Name.Length - 7) + "\"[label=" + "\"<\"" + "]" + "\n"; return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by the <c>lessExp</c> /// labeled alternative in <see cref="CoolParser.expresion"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitLessExp([NotNull] CoolParser.LessExpContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>lessExp</c> /// labeled alternative in <see cref="CoolParser.expresion"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitLessExp([NotNull] CoolParser.LessExpContext context) { return(VisitChildren(context)); }
public static string getCoolType(this CoolParser.LessExpContext s) { return("BOOL"); }
public override bool VisitLessExp([NotNull] CoolParser.LessExpContext context) { return(VisitChildren(context)); }