Git Product home page Git Product logo

vscode-proverif-language-service's Introduction

VSCode ProVerif Language Service

Available on the Visual Studio marketplace Available on the Open VSX marketplace

Visual Studio Code extension for ProVerif files (.pv, .pvl, .pcv).

Screenshot showing how the extension shows errors from ProVerif

Functionality:

  • Adds semantic syntax highlighting.
  • Highlights the first syntax error. For libraries, see below.
  • Hover over an identifier to learn more about it.
  • Press CTRL and click on an identifier to navigate to its definition or find all references of the definition.
  • Press F2 to rename an identifier.
  • Press CTRL+SHIFT+Space to show signature help (automatically shown when typing ().
  • Press CTRL+SHIFT+B to execute ProVerif over the currently opened file.

Settings:

  • Proverif Path: Custom path to the proverif binary (else taken from $PATH).
  • Parent Folder Discovery Limit: Parent folders to read until discovery stops (e.g. to find references).

Libraries (.pvl)

If your .pv or .pvl file depends on libraries, include a corresponding comment (* -lib {library_path}.pvl *):

(* -lib types.pvl *)

fun senc(bitstring, key): bitstring.
reduc forall m: bitstring, k: key; sdec(senc(m,k),k) = m.

vscode-proverif-language-service's People

Contributors

famoser avatar

Watchers

 avatar

vscode-proverif-language-service's Issues

.pvl using diff generate false error

The plugin executes .pvl by converting them into valid .pv files (simply appending process 0.)

However, when the .pvl file uses a diff, this does not work. The process would need to include a diff, too.

Improve resilience of the project

Ensure the project can run independent from a single maintainer (me). This includes:

  • Document main architecture
  • Ensure multiple people have direct release access (wait for #11 to finish)
  • Automate processes as much as possible (#13)

Proposal: Doccomments

OCaml supports doccomments, which could be added here too.

For example:

(** Generation of fresh Diffie-Hellman keys. Returns a pair (kpriv,kpub) *)
letfun DHKeygen() =
new s:scalar;
(s,dh(s,G))
.

Expectation of what vscode then should display:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.