Update README

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-03-27 03:57:36 -04:00
parent 4d787394cd
commit fda9858680
+9 -15
View File
@@ -12,28 +12,22 @@ Very, very alpha:
As an example of what can be parsed and evaluated, here is a fairly complex P4 program from our unit tests:
```P4
struct Testing {
bool yesno;
int count;
};
parser main_parser() {
state start {
bool where_to = ts.yesno;
string where_from = "here";
string where_where = "here";
if (where_to) {
bool where_from = true;
if (where_from) {
where_to = false;
}
}
where_from = "there";
transition select (where_to) {
false: reject;
true: accept;
Testing ts;
ts.count = 1;
transition select (ts.count) {
0: accept;
_: reject;
};
}
};
```
(assuming hat `ts` is an instance of a `struct` with the boolean-typed field `yesno`)
Please check back often!
### Building