Skip to content

p4lang/p4analyzer

Repository files navigation

P4 Language Server

A language server for the P4 language equipped with wasm build and VScode extension. The language server, called P4 analyzer, is built in Rust under crates directory and compiled to WebAssembly (wasm) for use as a language server. The wasm and VScode extension is in typescript under packages directory.

The language server plans to support:

  • Code Completion
  • Find References
  • Variable Information
  • Diagnostics
  • Jump to Def
  • Hover

Building

The repository supports building on unix & windows systems.

Prerequisites

Building using Nx

Nx is used as the build system as the repository contains WebAssembly as well as Rust projects. Once the prerequisites have been installed, run the following commands. This will install the required Node.js modules, build the Rust and TypeScript projects, and finally produce a .vsix package that can be installed into Visual Studio Code.

npm ci
npm run build
npm run package

About

A Language Server Protocol (LSP) compliant analyzer for the P4 language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages