P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Util::ProgramStructure Class Referencefinal

Public Types

enum class  SymbolKind { Identifier , TemplateIdentifier , Type , TemplateType }
 

Public Member Functions

void clear ()
 
void clearPath ()
 
void declareObject (IR::ID id, cstring type)
 
void declareParameters (const IR::IndexedVector< IR::Parameter > *params)
 
void declareType (IR::ID id)
 
void declareTypes (const IR::IndexedVector< IR::Type_Var > *typeVars)
 
void endParse ()
 
SymbolKind lookupIdentifier (cstring identifier)
 
void markAsTemplate (IR::ID id)
 
void pop ()
 
void pushContainerType (IR::ID id, bool allowDuplicates)
 
void pushNamespace (SourceInfo info, bool allowDuplicates)
 
void relativePathFromLastSymbol ()
 
void setDebug (bool debug)
 
void startAbsolutePath ()
 
cstring toString () const