public override ASTNode VisitEnumDeclItem([NotNull] llangParser.EnumDeclItemContext context) { string name = context.Iden().GetText(); Expression rhs = null; if (context.Number() != null) { rhs = new IntExprNode(long.Parse(context.Number().GetText()), MakeSourceLoc(context)); } return(new VarDeclNode(name, rhs, TypeSymbol.INT_SYMBOL, MakeSourceLoc(context))); }
public override MIPSRegister VisitIntExprNode(IntExprNode n) { return(base.VisitIntExprNode(n)); }
public override LLVMRegister VisitIntExprNode(IntExprNode n) { throw new NotImplementedException(); }
public object VisitIntExprNode(IntExprNode n) { WriteLine(n.kind + " - " + n.IntValue + ":" + n.Type); return(null); }
public override LData VisitIntExprNode(IntExprNode n) { return(new LInt(n.IntValue)); }
public virtual T VisitIntExprNode(IntExprNode n) { return(default(T)); }