Vendor Logo

P4 Language Server Protocol

P4 Language Server Protocol

P4LSP is an open-source implementation of the Language Server Protocol for the P4 language. It allows developers to work with P4 code in their favourite editor as long as it supports LSP. We also provide a seamless integration with Visual Code. The tool provides the following features: (1) syntax highlighting, (2) code refactoring (e.g, renaming), (3) syntactical diagnostic, (4) code completion and navigation (e.g., “go to definition”). It also provides a plugin-based approach allowing stakeholders to bind their homemade tools to the language supports so that the output of these tools becomes directly available in the IDE.

The Visual Code plugin that encapsulates the tool directly into Visual code is available here: https://marketplace.visualstudio.com/items?itemName=mcscert.p4lsp

Contact us

Fill out the form below, and we will be in touch shortly.