Beispiel #1
0
 public override void visit(Printing n)
 {
     if (n.type == AST.INTTYPE)
     {
         emit("printf(\"%d\",");
     }
     else
     {
         emit("printf(\"%1.5f\",");
     }
     emit(n.id);
     emit(");\n");
 }
Beispiel #2
0
 public abstract void visit(Printing n);
Beispiel #3
0
 public override void visit(Printing n)
 {
     n.type = AST.SymbolTable[n.id];
 }
Beispiel #4
0
 public override void visit(Printing n)
 {
     Console.Write($"p {n.id} ");
 }
Beispiel #5
0
 public override void visit(Printing n)
 {
     //throw new NotImplementedException();
 }