P4C
The P4 Compiler
Loading...
Searching...
No Matches
BFNOptionPragmaParser Class Reference

#include <bf-p4c-options.h>

Inheritance diagram for BFNOptionPragmaParser:
[legend]

Public Member Functions

std::optional< CommandLineOptions > tryToParse (const IR::Annotation *annotation) override
 
- Public Member Functions inherited from P4::P4COptionPragmaParser
std::optional< CommandLineOptions > tryToParse (const IR::Annotation *annotation) override
 
- Public Member Functions inherited from P4::IOptionPragmaParser

Additional Inherited Members

- Public Types inherited from P4::IOptionPragmaParser
using CommandLineOptions = std::vector<const char *>
 

Detailed Description

An IOptionPragmaParser implementation that supports Barefoot-specific pragmas.

In addition to the pragmas supported by P4COptionPragmaParser, BFNOptionPragmaParser recognizes:

  • p4-14: @pragma command_line [command line arguments]
  • p4-16: @command_line([command line arguments])

Member Function Documentation

◆ tryToParse()

std::optional< P4::IOptionPragmaParser::CommandLineOptions > BFNOptionPragmaParser::tryToParse ( const IR::Annotation * annotation)
overridevirtual