AntlrVSIX | language server for use with Visual Studio

 by   kaby76 C# Version: Current License: MIT

kandi X-RAY | AntlrVSIX Summary

kandi X-RAY | AntlrVSIX Summary

AntlrVSIX is a C# library typically used in Plugin, Visual Studio Code applications. AntlrVSIX has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

AntlrVSIX is a tool to support editing, analysis, refactoring, and conversion of context-free grammars, including Antlr, Bison, ISO 14977, LBNF, and W3C EBNF. It contains extensions for Visual Studio 2019, Visual Studio Code, Gnu Emacs, a Language Server Protocol (LSP) server, and a stand-alone command-line tool known as Trash. Trash is analogous to Bash but for parsing, in the lingua-franca of parsing: parse trees and XPath. All clients use the LSP server implemented in this repository. The clients each are implemented elsewhere, but a thin shim is provided in this repository to get the client to work with the server. For Visual Studio 2019, the client is implemented using Microsoft's client. The server is implemented using Antlr, Antlr4BuildTasks, XPath2, S-expressions for Antlr parse trees, and a number of other tools. Most of the code is implemented in C#. The extension for VS Code is written in Typescript. Supported are colorized tagging, hover, go to def, find all refs, replace, and reformat. Beyond the basic LSP commands, the tool supports analysis, refactoring, and conversion. NB: Antlrvsix for Visual Studio 2019 v8.3 will not offer semantic highlighting by default because the MS LSP client in VS2019 does not support semantic highlighting. In fact, it is 3 years behind the protocol. In order to support it for VSCode, I had to rewrite the entire language server protocol library (replacement here)--in a week--in order to bring it up to date. MS is too slow. If you want semantic highlighting, you can turn on the feature in the Antlrvsix options. Or, better, you could edit your grammar file using VSCode with Antlrvsix-vscode or Mike's vscode-antlr extension for VSCode. This problem will be addressed in release v8.4 or v9.0.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              AntlrVSIX has a low active ecosystem.
              It has 55 star(s) with 5 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 53 open issues and 74 have been closed. On average issues are closed in 24 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of AntlrVSIX is current.

            kandi-Quality Quality

              AntlrVSIX has 0 bugs and 0 code smells.

            kandi-Security Security

              AntlrVSIX has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              AntlrVSIX code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              AntlrVSIX is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              AntlrVSIX releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.
              AntlrVSIX saves you 3532 person hours of effort in developing the same functionality from scratch.
              It has 7558 lines of code, 407 functions and 229 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AntlrVSIX
            Get all kandi verified functions for this library.

            AntlrVSIX Key Features

            No Key Features are available at this moment for AntlrVSIX.

            AntlrVSIX Examples and Code Snippets

            No Code Snippets are available at this moment for AntlrVSIX.

            Community Discussions

            Trending Discussions on AntlrVSIX

            QUESTION

            ANTLR4 runtime problem in visual studio 2019
            Asked 2020-Aug-24 at 07:30

            I'm trying to get antlr working in VS. I’ve not touched VS for a very long time. I've added the AntlrVSIX extension per the Antlr online docs, this created a sample calculator project for me but I can't compile it (I uninstalled and reinstalled AntlrVSIX but it made no difference to the following problem).

            VS complains “The type or namespace name 'Antlr4' could not be found (are you missing a using directive or an assembly reference?)” and points to the line “using Antlr4.Runtime.Misc;” (and lots more similar).

            If I look in menu Tools:NuGet Package Manager:Manage NuGetPackages for Solution… it clearly shows Antlr4.Runtime.Standard present and installed (showing version 4.8.0).

            I guess I have to add a reference to this dll to my project so I I right click on References:Add Reference... in Solutions Explorer but I can’t find it in any list, however I search.

            There is a Browse button which I assume I could use to link to the DLL directly, so I’ve searched the disk, found the dll and linked to that. This now works in that all those errors go away, but this can’t possibly be the right way.

            So how do you add a reference to it properly, using References:Add Reference...? VS knows it’s there, it displays it, but doesn’t let it be referenced like that because it won’t show it within VS via References:Add Reference...

            ...

            ANSWER

            Answered 2020-Jul-31 at 15:47

            On your specific question, yes, you don't want to add a reference to the dll. Instead, you need to add a "" in the csproj for these dependencies. All this lives in Nuget.org. So, in VS2019, right click on a project in the Solution Manager, then look for "Manage Nuget packages" to add Antlr4BuildTasks and Antlr4.Runtime.Standard.

            Note, I've been updating the Antlrvsix extension, but haven't made a release for 2 months, longer than my usual schedule, because the next version has a huge number of changes. I will be cutting version 8 in a week. The template in VS2019 was removed because it is old and out of date. It uses an ancient version of the Antlr4BuildTasks. Instead, use the Antlr4BuildTasks.Templates v8.1 to create a C# project from scratch. Please follow the directions here. You don't need to download the Antlr tool kit, Java, or set any environmental variables. You also don't even need to use VS2019. You only need Net Core 3.1 and to install Antlr4BuildTasks.Templates. Then, type "mkdir foo; cd foo; dotnet new antlr; dotnet restore; dotnet build; dotnet run" at a command-line shell to create a C# application with Antlr4. Once you create the application, you can modify that to what you need. If you start from a Net Standard or Net Core project that doesn't have Antlr yet, you will need to add in the project reference for Antlr4.Runtime.Standard 4.8 and Antlr4BuildTasks 8.1, add in all grammars, and driver to set up and call the parser--harder to do, but it can be done through VS, or you can edit the CSPROJ file more easily and faster. The Antlr4BuildTasks looks at your CSPROJ file and will see that Antlr4.Runtime.Standard 4.8 is referenced, then will use the correct version of the Antlr JAR file to generate the parser and lexer. Any questions, let me know.

            Source https://stackoverflow.com/questions/63191238

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install AntlrVSIX

            Each night at 0h 0m UTC, Appveyor builds the latest source. The output of the build can be downloaded from Appveyor.
            Antlrvsix for VS2019
            Antlrvsix for VSCode

            Support

            Basic LSP services (tagging, go to def, find all refs, rename, etc.); transformations; analysis. Basic LSP services (tagging, go to def, find all refs, rename, etc.); conversion to Antlr4. Basic LSP services (tagging, go to def, find all refs, rename, etc.); conversion to Antlr4. Basic LSP services (tagging, go to def, find all refs, rename, etc.); conversion to Antlr4. Basic LSP services (tagging, go to def, find all refs, rename, etc.). Basic LSP services (tagging, go to def, find all refs, rename, etc.). Basic LSP services (tagging, go to def, find all refs, rename, etc.); conversion to Antlr4.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/kaby76/AntlrVSIX.git

          • CLI

            gh repo clone kaby76/AntlrVSIX

          • sshUrl

            git@github.com:kaby76/AntlrVSIX.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link