Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/julian/tree-sitter-lean

Experimental tree-sitter parser for the Lean (4) Theorem Prover
https://github.com/julian/tree-sitter-lean

context-free-grammar lean lean4 syntax-highlighting tree-sitter

Last synced: 1 day ago
JSON representation

Experimental tree-sitter parser for the Lean (4) Theorem Prover

Awesome Lists containing this project

README

        

================
tree-sitter-lean
================

Experimental start on a `Lean 4
`_ grammar for `tree-sitter
`_.

|CI|

.. |CI| image:: https://github.com/Julian/tree-sitter-lean/workflows/CI/badge.svg
:alt: Build status
:target: https://github.com/Julian/tree-sitter-lean/actions?query=workflow%3ACI

Can be used standalone, or in neovim with `nvim-treesitter
`_ via `lean.nvim
`_.

Testing
-------

Tests for the grammar live in ``test/corpus/*.txt``, and can be run as usual
for ``tree-sitter`` grammars with the `tree-sitter-cli
`_ via:

.. code-block:: sh

$ tree-sitter generate && tree-sitter test