![]()  | 
  
    P4C
    
   The P4 Compiler 
   | 
 
#include <p4ctool.h>
Public Member Functions | |
| int | main (std::string_view toolName, const std::vector< const char * > &args) | 
Protected Member Functions | |
| virtual int | mainImpl (const CompilerResult &compilerResult)=0 | 
| virtual void | registerTarget ()=0 | 
Abstract class for all compiler-based tools. Implementations should instantiate this template on a subclass of AbstractP4cToolOptions.
      
  | 
  inline | 
| args | Contains the path to the executable, followed by the command-line arguments for this tool. | 
      
  | 
  protectedpure virtual | 
Provides the implementation of the tool.
| program | The P4 program after mid-end processing. | 
Implemented in P4Tools::P4Smith::Smith, and P4Tools::P4Testgen::Testgen.