Пример #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);
     }
 }
Пример #2
0
 public abstract void visit(SymReferencing n);
Пример #3
0
 public override void visit(SymReferencing n)
 {
     n.type = AST.SymbolTable[n.id];
 }
Пример #4
0
 public override void visit(SymReferencing n)
 {
     Console.Write(n.id);
 }
Пример #5
0
 public override void visit(SymReferencing n)
 {
     //throw new NotImplementedException();
 }
Пример #6
0
 public override void visit(SymReferencing n)
 {
     emit(" " + n.id + " ");
 }