Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>P4 Language ExtensionNew to Visual Studio Code? Get it now.
P4 Language Extension

P4 Language Extension

Ali Fattaholmanan

|
10,369 installs
| (0) | Free
A language server/client for P4_16
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

P4 VSCode Extension

This repo contains the Visual Studio P4_16 Extension.

Features

  • Syntax checker,
  • Syntax Highlighting,
  • Autocompletion for headers and input parameters,
  • Support of remote compiler for showing an extended list of errors (with user authentication for access control),
  • Snippet for basic code structures, like tables.

Open source projects used in this extension

  • Antlr (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing or translating structured text or binary files. To this end, the referenced lex/yacc P4 grammars (links to: lexer and parser) have been transferred to Antlr4 syntax in grammar folder.

  • vscode-p4 "the most basic syntax colorizer" and the same code is used in this project for syntax highlighting.

License

Apache-2.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft