Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Nano-P4

Nano-P4 is an educational dialect of P4 designed for this tutorial. P4 in its entirety has a large surface area, so mechanizing it from scratch would be an overwhelming first project. Nano-P4 intentionally strips away the more complex corners of the language and keeps only enough to illustrate every step of the spec-authoring workflow end to end.

By the end of this chapter, you will have a clear picture of what you are specifying before writing a single line of P4-SpecTec.

In this chapter