asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Support the Language Server Protocol for IDE integrations #48

Open perimosocordiae opened 3 years ago

perimosocordiae commented 3 years ago

See https://microsoft.github.io/language-server-protocol/

perimosocordiae commented 3 years ago

We'll probably want the LSP server to live in a separate repo from the language itself.

perimosocordiae commented 3 years ago

In this repo, the first step would be a binary that runs all the lexing/parsing/typechecking and emits diagnostics in an LSP-compatible JSON format, but doesn't execute anything. Something like the current dump_cfg tool, basically.