Ignore:
Timestamp:
Jun 8, 2023, 3:19:43 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT
Parents:
044ae62
Message:

Finish Adt POC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/SymbolTable.hpp

    r044ae62 rfa2c005  
    111111        /// Gets the top-most struct declaration with the given ID
    112112        const StructDecl * lookupStruct( const std::string &id ) const;
     113
     114        const AdtDecl * lookupAdt( const std::string &id ) const;
    113115        /// Gets the top-most enum declaration with the given ID
    114116        const EnumDecl * lookupEnum( const std::string &id ) const;
     
    141143        void addEnum( const EnumDecl * decl );
    142144        /// Adds an adt declaration to the symbol table
     145        void addAdt( const std::string & id );
    143146        void addAdt( const AdtDecl * decl );
    144147        /// Adds a union declaration to the symbol table by name
Note: See TracChangeset for help on using the changeset viewer.