Git Product home page Git Product logo

vscode-tamarin's Introduction

Tamarin Visual Studio Code extension

The official Visual Studio Code extension for Tamarin files (.spthy) supported by the Tamarin team. Based on giclu-3's extension and using Tamarin's tree-sitter grammar.

Example

Features:

  • Enhances giclu-3's syntax highlighting.

  • Adds comprehensive syntax error detection based on the grammar with MISSING or ERROR messages.

  • Provides various wellformedness checks:

    • Checks position and usage of reserved facts (Fr, Out, In, K, KD, KU).
    • Checks whether variable are used consistly inside a rule, i.e., using the same capitalization and sort.
    • Spellcheck on facts (must start with an uppercase letter).
    • Checks whether all variables in the conclusion of a rule appear in the premises (except public variables).
    • Checks the arity of facts and functions.
    • Checks whether a lemma uses free terms.
    • Checks whether all facts in the premises of the rules appear in the conclusion of some (other) rule (provides a quick fix by using the closest exisiting fact, based on editing distance).
    • Checks wether all variables in the right hand side of a macro are in the left hand side or public.
    • Checks wether all variable in the right hand side of an equation are in the left hand side.
    • Provides a quick fix for function names (suggestions based on editing distance).
    • Checks wether built-ins are imported when encountering corresponding functions or symbols (provides a quick fix to import the right built-in).

    This is a subset of the checks performed by Tamarin. For more details on Tamarin's wellformedness checks, see the corresponding Tamarin Prover manual section.

  • Use right click and Rename on an indentifier to rename all occurences of it inside a rule or a lemma.

  • Use right click and Search Definition on facts or function names and press CTRL+TAB to navigate through all occurences.

vscode-tamarin's People

Contributors

gilcu3 avatar jdreier avatar linwe2012 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.