public SymbolTableEntry Create(string name, SymbolTableEntryType type)
        {
            SymbolTableEntry entry = new SymbolTableEntry
            {
                Name = name,
                Type = type
            };

            Entries.Add(entry);

            return(entry);
        }
        public bool Get(string name, out SymbolTableEntry result)
        {
            SymbolTable cur = this;

            result = null;

            while (cur != null)
            {
                SymbolTableEntry entry = cur.Entries.FirstOrDefault(x => x.Name == name);

                if (entry != null)
                {
                    result = entry;
                    return(true);
                }

                cur = cur.Parent;
            }

            return(false);
        }