cenotelie / hime-language-server

GNU Lesser General Public License v3.0
0 stars 1 forks source link

Support for Hime languages #1

Open esoterra opened 4 years ago

esoterra commented 4 years ago

I love the idea of parsing frameworks that offer simple, easy to use functionality and provide standard ways of specifying grammars. Hime looks very interesting, and I am reading up on it to decide whether to use it in my future projects.

One thing I have trouble finding in parsing frameworks is strong editor support. An ideal extension supporting a grammar specification system should both support rich development features (highlighting, diagnostics, go-to-definition, etc.) for both the grammar format and for languages defined in that format.

I think it would be great if the hime-language-server could offer some of these features and let users link a file extension with a grammar definition. The language server could then process all files with that extension to include, among other things, parse error diagnostics.

woutersl commented 4 years ago

Thanks for the feedback! At this time Hime does not provide a unified framework to that goes as far as you want (and we do not plan for this). As many other parser generators, Hime does only this, generate a parser for your grammar.

As you have noted, there are some additional projects that we maintain that are related. This one (hime-language-server), is a language server implementation that can be used in editors for the edition of Hime grammars. It is embedded in a plugin for vscode for this purpose: vscode plugin (sources).

The same language server framework has been used along Hime-generated parsers to implement language servers for languages in the semantic-web community (RDF syntaxes, SPARQL, ...), although I fail to retrieve the sources for this right now.