Skip to content

Extension to support Nemo rules in VSCode and compatible editors

Notifications You must be signed in to change notification settings

knowsys/nemo-vscode-extension

Repository files navigation

Nemo Rule Engine Language Support

Features:

  • Nemo Rule File language configuration
  • Basic syntax highlighting
  • Syntax error diagnostics
  • Document outline
  • Find references of predicates, local variables, functions and aggregates
  • Rename all occurences of predicates, local variables, functions and aggregates

This editor extension works with VSIX-compatible editors such as VSCodium and Eclipse Theia.

Installation

  • Install extension .vsix file

In web contexts, this extension works out of the box (using web assembly). In all other contexts, one needs to setup the Nemo language server manually:

  • Build the [Nemo language server](Nemo WASM library) for your platform

    git clone -b parser https://github.com/knowsys/nemo.git
    cd nemo
    cargo build --release --package nemo-language-server --bin nemo-language-server
    # Get path to language server binary
    realpath target/release/nemo-language-server
    
  • Setup path to Nemo language server in the extension settings

Building the .vsix extension

  • Clone the repository

  • Build the Nemo WASM library

  • Build and package the extension

    # Copy nemo-wasm library to the correct location
    cp -rTv $PATH_TO_NEMO_WASM/nemoWASMWeb .
    
    npm install
    npm run package

About

Extension to support Nemo rules in VSCode and compatible editors

Resources

Stars

Watchers

Forks

Packages

No packages published