OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

OpenDream Language Server

Open strandsofivy opened this issue 1 year ago • 5 comments

People have been talking about making a LSP from the OD compiler for a while now, so here's an issue for tracking what needs to be done

  • [ ] Split expression tree parser and code emission
  • [ ] Move the preprocessor, lexer, parser and semantic analyser into a new "language platform" library
  • [ ] Refactor DMCompiler to interface with the library
  • [ ] Add the LSP

If theres something missing or if i got something wrong, post a comment and I'll update the issue

strandsofivy avatar May 28 '24 20:05 strandsofivy

Example implementation in a random scripting language: https://github.com/Draco-lang/Compiler/tree/main/src/Draco.Lsp

ike709 avatar May 28 '24 20:05 ike709

Existing DM langserver: https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver

ike709 avatar May 28 '24 20:05 ike709

this'll be the perfect excuse to finally use the AST visitors we never really used

strandsofivy avatar May 28 '24 20:05 strandsofivy

this'll be the perfect excuse to finally use the AST visitors we never really used

The AST visitors were removed a bit ago

wixoaGit avatar Jun 02 '24 00:06 wixoaGit

The AST visitors were removed a bit ago

oof

strandsofivy avatar Jun 02 '24 22:06 strandsofivy