DGD LPC Language Server #98
Replies: 4 comments
-
|
Interesting! A LPC language server is on my TODO list, though I would build it in LPC, not Java. Did you solve the preprocessor problem? |
Beta Was this translation helpful? Give feedback.
-
|
I'm most comfortable with Java, so that's the road I took. But it seems like parsing would be much easier in LPC or even C++ if it could use DGD's parser, as the ANTLR grammar I put together needs a lot of work (assuming ANTLR is suitable for this). I haven't done anything with preprocessing. Maybe it should be one of the first things to do, though. |
Beta Was this translation helpful? Give feedback.
-
|
The preprocessor introduces complications like so you have to do macro substitution before you parse the syntax. Using LPC for the language server seems like a natural fit, though it also makes editing the code for the language server from VS Code harder. |
Beta Was this translation helpful? Give feedback.
-
|
I thought briefly about what a preprocessor would entail, and that's a lot of what became overwhelming. I went for the low-hanging fruit of kfun and keyword completion instead; easy goals once I started to comprehend what I was wading into, I didn't have to worry about preprocessing, the current file, or any other file for that matter. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I created this DGD LPC language server and VS Code client. It's become overwhelming to work on, so I'll leave it here. Maybe it'll serve as a basis or a spark for something better. https://github.com/november-kilo/dgdlpc-language-server
Beta Was this translation helpful? Give feedback.
All reactions