TatSu
merlin
Our great sponsors
TatSu | merlin | |
---|---|---|
4 | 12 | |
389 | 1,543 | |
1.3% | 0.4% | |
9.0 | 8.9 | |
about 1 month ago | 7 days ago | |
Python | OCaml | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TatSu
- GitHub - neogeny/TatSu: TatSu generates Python parsers from grammars in a variation of EBNF
-
Hacker News top posts: May 7, 2022
TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers\ (3 comments)
- TatSu takes grammars in variation of EBNF, outputs memoizing Python PEG parsers
merlin
- Merlin: Context sensitive completion for OCaml in Vim and Emacs
-
Hacker News top posts: May 7, 2022
Merlin: Context sensitive completion for OCaml in Vim and Emacs\ (0 comments)
-
Hoogle for Rust?
Instead of searching functions based on their type structure (like Hoogle), you could search for functions that "consume"/"produce" values of given types (like OCaml's Merlin). I think Rust already computes variance of type constructors, so such a tool just would have to obtain this information.
-
Dot completion
However, after posting this question I stumbled upon this Github issue where they say it isn't supposed to work out of the box and you're supposed to bind a key to it by editing your .emacs file. Turns out the default .emacs file binds auto-complete to "backtab" which means Shift+Tab but that didn't work. I did eventually discover that I can get some kind of completion by binding backtab to completion-at-point like this:
-
Advice/best practice/arhitecture pattern for building language with LSP in mind?
Self-advertising: I partcipated to the writing of Merlin: A Language Server for OCaml (Experience Report), which explains the overall design of Merlin, a language server for OCaml. A key idea of Merlin are that classic lexing-parsing-typing pipelines can easily be adapted to be incremental for a Language Server, especially when they are using immutable data structures.
- merlin: Context sensitive completion for OCaml in Vim and Emacs
What are some alternatives?
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
hoogle - Haskell API search engine
pyparsing - Python library for creating PEG parsers [Moved to: https://github.com/pyparsing/pyparsing]
ocamlformat - Auto-formatter for OCaml code
Covfefe - A parser for nondeterministic context free languages
Mosh - Mobile Shell
participle - A parser library for Go
ocaml-lsp - OCaml Language Server Protocol implementation
chpeg - Parsing Expression Grammar (PEG) bytecode parser/compiler library
rust-prolog - Rust implementation of prolog based on miniprolog: http://andrej.com/plzoo/html/miniprolog.html
astroid - A common base representation of python source code for pylint and other projects
bisect_ppx - Code coverage for OCaml and ReScript