vimjoyer / lezer-parser-nix

lezer grammar for the nix language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lezer-parser-nix

This is a Nix grammar for the lezer parser system.

The code is licensed under an MIT license.

Dev

To watch & test, with entr installed run npm run watch

usage

  • monaco-lezer-parser - use lezer parsers in monaco-editor
    • also has a grammar file for nix: monaco-lezer-parser/grammars/nix.json
  • codemirror editor has native support for lezer parsers
    • pro: lightweight, modular
    • con: less mature than monaco-editor

demos

similar projects

related

this project is based on

other Nix parsers

Nix language spec

About

lezer grammar for the nix language

License:MIT License


Languages

Language:JavaScript 97.7%Language:Shell 1.6%Language:Nix 0.6%