common, codegen: Implement Visitor And Use For CodeGen
Continuous Integration / Grammar Tests (push) Successful in 4m6s
Continuous Integration / Library Format Tests (push) Successful in 5m5s
Continuous Integration / Library Tests (push) Successful in 9m0s
Continuous Integration / Cli Tests (push) Successful in 4m57s

Implement a generic visitor for components of a P4 program and use
it to start P4 code generation (according to the behavioral model).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-15 08:14:20 -04:00
parent f1f20e96a2
commit 12fa43d9f9
7 changed files with 678 additions and 18 deletions
+2 -1
View File
@@ -91,6 +91,7 @@ where `<component>` is one of:
5. `documentation`: For any documentation updates.
6. `testing`: For Swift-based tests.
7. `cli`: For Cli components.
7. `codegen`: For code generation components.
where `<subcomponent>` can be more free-form and `<change>` is a pithy description of the changes in the commit.
@@ -143,4 +144,4 @@ To check the format:
```console
$ swift-format --recursive -i Sources/
```
```