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: 19 days ago
JSON representation
Experimental tree-sitter parser for the Lean (4) Theorem Prover
- Host: GitHub
- URL: https://github.com/julian/tree-sitter-lean
- Owner: Julian
- License: mit
- Created: 2021-02-28T14:51:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T02:14:49.000Z (4 months ago)
- Last Synced: 2025-04-14T16:18:09.968Z (19 days ago)
- Topics: context-free-grammar, lean, lean4, syntax-highlighting, tree-sitter
- Language: C
- Homepage:
- Size: 241 MB
- Stars: 31
- Watchers: 4
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: COPYING
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%3ACICan 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