Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Writing a TLA⁺ tree-sitter grammar: my foray into free software (ahelwer.ca)
131 points by ahelwer on Jan 12, 2023 | hide | past | favorite | 3 comments


Wow, thank you for doing this! I’ve been wanting to write TLA+ in emacs for a while now, but the lack of syntax highlighting has been forcing me back to the (IMO) clunky TLA+ toolbox. With emacs-treesitter coming in emacs 29, I’ll finally be able to live the dream!


Not an emacs person myself (yet!) - Carl Thuringer created tla-mode that apparently uses the grammar: https://github.com/carlthuringer/tla-mode

Haven't tested it out myself. Happy to take any PRs if emacs needs its own set of query files; they would live in https://github.com/tlaplus-community/tree-sitter-tlaplus/tre... and they can be added to CI runs to ensure they stay in sync with changes to the parser.


Just watched his talk on Youtube. Like it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: