antlr-monaco
TypeScript icon, indicating that this package has built-in type declarations

0.3.0-alpha2 • Public • Published

antlr-monaco

⚠️ Warning: The project is still experimental

Tools to integrate ANTLR4 grammars in the Monaco Editor.

Installation

With NPM:

npm install antlr-monaco

With Yarn:

yarn add antlr-monaco

Dependencies

This library depends on antlr4ts, antlr4-c3 and monaco-editor which are not bundled with it.

Usage

The library has 3 main modules:

Grammar

The base of the project. It has a completion engine (based on antlr-c3) that can be configured to suggest tokens and rules.

Monaco

The integration of the grammar into the Monaco Editor. These are the implemented components:

Test

Some functions to reduce the boilerplate of unit tests.

Examples

The examples folder includes these languages:

  • DPM-XL

Collaboration

License

Apache 2.0

Authors

/antlr-monaco/

    Package Sidebar

    Install

    npm i antlr-monaco

    Weekly Downloads

    35

    Version

    0.3.0-alpha2

    License

    Apache-2.0

    Unpacked Size

    79.8 kB

    Total Files

    53

    Last publish

    Collaborators

    • j-a-m-l