jafingerhut / p4-guide

Guide to p4lang repositories and some other public info about P4
534 stars 156 forks source link

[Question] P4 standard headers file #40

Open EmanueleGallone opened 3 years ago

EmanueleGallone commented 3 years ago

Hi, is it possible to create a single P4 file template containing the common standard headers that P4 is actually able to parse? for example, containing:

This way, whenever someone has to deal with standard protocols it's just a matter of 'copy-paste'.

jafingerhut commented 3 years ago

Recently someone volunteered to coordinate an effort to create such a file that would be published by the P4.org group in one of their repositories. I will try to remember to update this issue when that is published, but I suspect there will be a fair amount of discussion and editing that happens between now and when it is published, e.g. it could easily be at least a month, if not two.