-
p4c currently normalizes all white space in (unstructured) annotation to a single space. Is this expected behavior?
Since annotations can contain (almost) arbitrary string, consuming them will typi…
-
My downstream projects are hitting the following error after recent changes:
```
terminate called after throwing an instance of 'Util::CompilerBug'
what(): In file: /home/runner/work/flay/p4…
-
Since [PreControl block has been removed in PNA spec](https://github.com/p4lang/pna/pull/78). I wonder if PreControlT in pna.p4 (and related backends) should be removed too?
https://github.com/p4la…
-
The [spec](https://p4.org/p4-spec/docs/P4-16-v-1.2.3.html#sec-expr-hu) specifies that calling `setInvalid()` on any header inside a header union should invalidate all headers in that union:
> u.hi.se…
-
Here is an example:
```
~/git/p4c/ir/node.h:144:43: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
IRNODE_ALL_SUBCLASSES(DEFINE_OPEQ_FUNC)
…
-
Thinking more about it... What if we do the opposite?
- Conversion to `string_view` should be implicit
- Construction from `const char*` should be explicit
Here is the rationale: currently it i…
-
I have installed bmv2 and p4c-bmv2 successfully as README said.
But when I tried to make it ,it shows below.
I think it is something wrong with p4c_bm it can't complie the P4 script in p4src, but I …
-
When the user supplies a token which is not a declared type, where a declared type is expected, the parser produces various types of syntax errors, many of which are not as accurate and helpful as the…
-
I want to know how to get the edge between two tables.I can get tables from the following code
```
from p4_hlir.main import HLIR
h = HLIR("simple_router.p4")
h.build()
h.p4_tables
```
-
Hello, I was curious. Are there still any plans to continue development on this project? P4 does need a language server so this could have high impact if successful.