Chris Dodd
Chris Dodd
First change relaxes frontend checks to allow arrays in general as per https://github.com/p4lang/p4-spec/issues/1320. Non-header arrays only support indexing, not any other header stack operations Second change adds support for C-style...
Generally the compiler is run via the p4c driver which sets up the include path properly, but sometimes one wants to run the executable directly. If it is installed in...
Consider the following program with a generic function (minor change of testdata/p4_16_samples/function.p4): ~~~ T max(in T left, in T right) { if (left > right) return left; return right; }...
This is still very much a work in progress (doesn't even build at the moment due to order-of-declaration issues), but is complete enough to show my thinking. The idea here...