Hi,
> 1) I don't recommend that you use Antlrvsix. I have complained to Microsoft to please add proper LSP support VS2019. Who knows if it will ever be done. First, it does not use the latest protocol version. It's years behind the current version. VSCode is up to date. Second, writing an extension for LSP for VS2019 is trying to hit a moving target: the API changes with each release, e.g., 16.8, 16.9, 16.10, ... It's ridiculous...
I've heard elsewhere about VS being like this and I'm sorry the trouble its caused you. For me I always edit the grammar in emacs. I just want VS to compile the stuff together then run it; LSP for C# is helpful, for Antlr grammars I've never needed it. They very straightforward.
> 2) The editor extension you use has absolutely nothing to do with the building of a C# program. You can build and run the C# application without ever opening Visual Studio
Understood, but isn't the issue here that a runtime DLL didn't match the compile-time stuff? I am pretty sure I just installed VSIX which just pulled down everything it needed. I don't recall I got the dll manually (today being the sole exception), so I presume the dll was fetched by VSIX.
> In either case, you never have to download and Antlr tool .jar file.
Indeed, and I think I never downloaded the runtime either (please excuse me if I'm being dense) so I don't know what happened.
> 3) I tried the grammar you posted in your first message with Antlr4.Runtime.Standard, and after deleing "return ...." in the start_rule, it parses fine either input.
I don't understand this at all. If you want I can do a clean OS install in a VM, clean install of VS2019 in that, and see what gets installed and in what version, if that ewould help.
cheers
jan