Closed pataei closed 1 year ago
@jnfoster @hackedy section 5.1 (type well-formedness) is ready to review.
Changes applied in the commit 4a14625:
\dir \var : \typ
to \prm
in expression types part of the syntax\prm
to \prm \typKind
where type kind can either be \tau
or \rho
. Issue the following:
Todos after this merge for the next one:
π π πͺ
@hackedy and @jnfoster can you please review the formalization of P4's abstract syntax (section 4)?
Keep in mind that there are some small differences between our formalization and P4 spec. I enumerate them here (by "we" refers to Petr4's implementation and the document formalization, "P4" refers to P4 spec):
annotations
.match-kind
andbit
in our data types, however, we havematch-kind
in the type of expressions.+
.In general, P4 spec tries to do some of the type checking through its grammar and we have a more general grammar.