compiler: Add Ability to Annotate Preprocessed Source
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
state start {
|
||||
Testing ts;
|
||||
ts.yesno = true;
|
||||
ts.count = 5;
|
||||
transition select (ts.count == 5) {
|
||||
true: accept;
|
||||
false: reject;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
parser main_parser() {
|
||||
#include <annotate-parser-state.p4>
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
bool yesno;
|
||||
int count;
|
||||
@@ -0,0 +1,4 @@
|
||||
struct Testing {
|
||||
#include <annotate-struct-body.p4>
|
||||
};
|
||||
#include <annotate-parser.p4>
|
||||
Reference in New Issue
Block a user