Exemple #1
0
 public void Insert(FunctionSymbol n)
 {
     n.StackLocation = GetStackSize() + 1;
     List<ASTType> param2 = new List<ASTType>();
     foreach (ParameterDeclaration decl in n.Parameters)
         param2.Add(decl.Type);
     dictionary.Add(Tuple.Create(n.Name, param2), n);
 }
 public void visit(FunctionSymbol n)
 {
     throw new NotImplementedException();
 }
 public virtual void visit(FunctionSymbol n)
 {
     // Do nothing; leave the implementation to the main class
 }
 public ASTType visit(FunctionSymbol n)
 {
     return n.ReturnValue;
 }