Skip to content

yracnet/vscode-nearley-plugin

Repository files navigation

VSCode-Nearley-Plugin

Plugin for Nearley Grammar - https://nearley.js.org

Compile ne File

Features

  • Compile ne files with command CTRL + ENTER
    • Generate grammar js file ( [grammar].js )
    • Generate grammar test file ( [grammar].ne-test )
  • Ejecute ne-test files with command CTRL + ENTER
    • Generate ne.js ejecutor on root project directory
    • Display result on editor
    • Display trace on editor (history)

Compile ne File

Test ne-test File

Requirements

  • Node global command
  • Nearley in local project

Extension Settings

Compile

  • Compile React View
$ cd /this/project/path
$ cd view
$ yarn run build:vscode
  • Compile Nearley Plugin
$ cd /this/project/path
$ code .
$ # F5 run plugin

Known Issues

Release Notes

1.0.0

Initial plugin


Source Code

Enjoy!