Beispiel #1
0
def dump_to_p4_P4ParserException(self, hlir):
    set_statements = [statement.dump_to_p4(hlir) for statement in self.set_statements]
    return_or_drop = self.return_or_drop.dump_to_p4(hlir)
    g_parser_exception = p4_parser_exception(
        hlir, self.name, set_statements=set_statements, return_or_drop=return_or_drop
    )
    g_parser_exception._pragmas = self._pragmas.copy()
Beispiel #2
0
def dump_to_p4_P4ParserException(self, hlir):
    set_statements = [
        statement.dump_to_p4(hlir) for statement in self.set_statements
    ]
    return_or_drop = self.return_or_drop.dump_to_p4(hlir)
    g_parser_exception = p4_parser_exception(hlir,
                                             self.name,
                                             set_statements=set_statements,
                                             return_or_drop=return_or_drop)
    g_parser_exception._pragmas = self._pragmas.copy()