37 void convertSimpleKey(
const IR::Expression *keySet, big_int &value, big_int &mask)
const;
38 unsigned combine(
const IR::Expression *keySet,
const IR::ListExpression *select, big_int &value,
39 big_int &mask,
bool &is_vset,
cstring &vset_name)
const;
41 Util::IJson *convertParserStatement(
const IR::StatOrDecl *stat);
42 Util::IJson *convertSelectKey(
const IR::SelectExpression *expr);
43 Util::IJson *convertPathExpression(
const IR::PathExpression *expr);
45 cstring jsonAssignment(
const IR::Type *type);
46 std::vector<Util::IJson *> convertSelectExpression(
const IR::SelectExpression *expr);
47 void addValueSets(
const IR::P4Parser *parser);
50 bool preorder(
const IR::P4Parser *p)
override;
52 : ctxt(ctxt), name(name), corelib(P4::P4CoreLibrary::instance()) {
53 setName(
"ParserConverter");
void convertSimpleKey(const IR::Expression *keySet, big_int &value, big_int &mask) const
Operates on a select keyset.
Definition bmv2/common/parser.cpp:334
Definition bmv2/common/helpers.h:297