vscode-st icon indicating copy to clipboard operation
vscode-st copied to clipboard

Langium/dev - Structure text grammar without declarations

Open rempAut opened this issue 2 years ago • 7 comments

Still WIP - opening this PR to have a place for discussions.

rempAut avatar Nov 28 '22 14:11 rempAut

  1. Perhaps you are right not to include generated files. I'll delete those from Git and add .gitignore
  2. I have created pou.langium. This is going to be a file for entry to generate. I have there a base structure already.
  3. I have changed langium-configuration to make that pou.langium an entry point also I deleted generation of syntax file because our syntax file is good already. Every time you generate langium it replaces syntax and highlights are gone.
  4. I have added some validation rules to test how it will work.

Serhioromano avatar Nov 29 '22 07:11 Serhioromano

OK. My main task now is to tidy up the generated AST, so it is actually usable.

rempAut avatar Nov 29 '22 07:11 rempAut

NO worries. I've managed to pull custom symbol providers.

Serhioromano avatar Nov 29 '22 14:11 Serhioromano

I created custom symbol provider. It works fine! I like it. If you want, you can test it. Check out features/lsp branch, run npm run langium:generate and launch Run Extension.

I also ass Attach Server debugger to debus server side.

Serhioromano avatar Nov 29 '22 17:11 Serhioromano

Hey, I'm currently dealing with reference scoping issues. I'll be able to commit more during christmas - end of the year is always crazy in our company.

rempAut avatar Dec 10 '22 06:12 rempAut

Hey, I'm currently dealing with reference scoping issues. I'll be able to commit more during christmas - end of the year is always crazy in our company.

Thanks for letting me know. I understand that the end of the year can be a busy time for many companies. I'll look forward to your contributions once things have settled down.

Serhioromano avatar Dec 11 '22 06:12 Serhioromano

Hey, I'm currently dealing with reference scoping issues. I'll be able to commit more during christmas - end of the year is always crazy in our company.

By the way my last answer was what ChatGPT suggested me to answer on your comment :)

Serhioromano avatar Dec 12 '22 11:12 Serhioromano