mike-lischke / antlr4-c3

A grammar agnostic code completion engine for ANTLR4 based parsers
MIT License
408 stars 62 forks source link

How can I use this project to create Language Server for VS Code? #61

Closed Serhioromano closed 2 years ago

Serhioromano commented 2 years ago

I am developing extensions to support Structured Text IEC 61131-3 language. I have syntax highlights, outline, snippets and basic formatting already. But now I want to create a Language Server. I came across this project. And after briefly reading README I have a feeling that it can be the way to go.

Can you make me a short instruction on a basic rules on that? Or would it be possible at all?

mike-lischke commented 2 years ago

You cannot. This is just a code completion core implementation. A language server is so much more.

NorthNick commented 2 years ago

It can form a useful part of a VS Code language server though: take a look at Code Completion with ANTLR4-c3.

Serhioromano commented 2 years ago

@NorthNick Thank you.

dobladez commented 2 years ago

@Serhioromano: I hope this gives you some ideas: https://neuroning.com/post/implementing-code-completion-for-vscode-with-antlr/

Serhioromano commented 2 years ago

@Serhioromano: I hope this gives you some ideas: https://neuroning.com/post/implementing-code-completion-for-vscode-with-antlr/

@dobladez Cool article. And your repository that has it implemented would be enough I think to start. Thank you for your article! Do not you mind if I have some questions for you? Where can I ask those? Do you have telegram? If so, add me with https://t.me/serhioromano please.