public void visit(ConstantSymbol n) { throw new NotImplementedException(); }
public override void visit(ConstDeclaration n) { Table scope = n.Scope; if (n.Type == null) n.Type = n.accept(new TypeVisitor()); ConstantSymbol sym = new ConstantSymbol(n.Name.Name, n.Type, n.RHS); scope.Insert(sym); }
public void Insert(ConstantSymbol n) { n.StackLocation = GetStackSize() + 1; dictionary.Add(Tuple.Create<string, List<ASTType>>(n.Name, null), n); }
public virtual void visit(ConstantSymbol n) { // Do nothing; leave the implementation to the main class }
public ASTType visit(ConstantSymbol n) { return n.Type; }