Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sketch for tree-sitter mode #1369

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

dnezam
Copy link
Contributor

@dnezam dnezam commented Dec 11, 2024

This PR contains an initial (and incomplete!) sketch for a tree-sitter based Emacs mode. There are still some things that do not get parsed, some things are probably expressed in an awkward way, and there is no indentation rules yet.

To use it, you will need to

  1. Install tree-sitter
  2. Call tree-sitter generate within the directory that contains the grammar
  3. Call make
  4. Copy the generated libtree-sitter-holscript.so file to your user-emacs-directory
  5. Load the holscript-ts-mode.el file
  6. Start the mode

If anything doesn't work, please let me know! I am more than happy to help wherever I can.

Some useful references:

@mn200
Copy link
Member

mn200 commented Dec 13, 2024

Thanks!

@mn200 mn200 merged commit 2af3513 into HOL-Theorem-Prover:develop Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants