Пример #1
0
        public void VisitNode(PrimitiveType node)
        {
            // Get this symbol from the symbol table
            AbstractAttr proposedType = TopDclVisitor.currentSymbolTable.lookup(Utilities.FilterOutKeywords(node.Name));

            if (proposedType == null)
            {
                TopDclVisitor.Error(String.Format("Warning! Type {0} does not exist in symbol table!", node.Name));
                proposedType          = new Attributes("Error");
                proposedType.typeInfo = new ErrorTypeDescriptor();
            }
            node.attrRef = proposedType;
        }