Exemple #1
0
        public override LLVMRegister VisitAssignNode(AssignNode n)
        {
            LLVMRegister lhs = Visit(n.lhs);
            LLVMRegister rhs = Visit(n.rhs);

            return(null);
        }
Exemple #2
0
        public override object VisitAssignNode(AssignNode n)
        {
            Visit(n.lhs);
            Visit(n.rhs);

            return(null);
        }
Exemple #3
0
        public virtual T VisitAssignNode(AssignNode n)
        {
            T a = n.lhs.Accept(this);
            T b = n.rhs.Accept(this);

            return(default(T));
        }
Exemple #4
0
            public override LData VisitAssignNode(AssignNode n)
            {
                LData lhs = Visit(n.lhs);
                LData rhs = Visit(n.rhs);

                lhs.SetValue(rhs);
                return(null);
            }
Exemple #5
0
        public object VisitAssignNode(AssignNode n)
        {
            WriteLine(n.kind);
            Indent();
            Visit(n.lhs);
            Visit(n.rhs);
            Dedent();

            return(null);
        }
Exemple #6
0
 public override MIPSRegister VisitAssignNode(AssignNode n)
 {
     return(base.VisitAssignNode(n));
 }
Exemple #7
0
 public override object VisitAssignNode(AssignNode n)
 {
     Visit(n.lhs); Visit(n.rhs);
     semanticChecker.CheckAndReport(n.lhs.Type.Match(n.rhs.Type), n.sourceLoc, "Type mismatch");
     return(null);
 }