Example #1
0
 void val(out AST e)
 {
     e = null;
     if (la.kind == 6)
     {
         Get();
         e = new IntConsting(t.val);
     }
     else if (la.kind == 7)
     {
         Get();
         e = new FloatConsting(t.val);
     }
     else if (la.kind == 8)
     {
         Get();
         e = new SymReferencing(t.val);
     }
     else
     {
         SynErr(13);
     }
 }
Example #2
0
File: Visitor.cs Project: mkju19/P4
 public abstract void visit(FloatConsting n);
Example #3
0
 public override void visit(FloatConsting n)
 {
     n.type = AST.FLTTYPE;
 }
Example #4
0
 public override void visit(FloatConsting n)
 {
     Console.Write(n.val);
 }
Example #5
0
 public override void visit(FloatConsting n)
 {
     //throw new NotImplementedException();
 }
Example #6
0
 public override void visit(FloatConsting n)
 {
     emit(" " + n.val + " ");
 }