trgenvsc 0.23.23

dotnet tool install --global trgenvsc --version 0.23.23
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local trgenvsc --version 0.23.23
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=trgenvsc&version=0.23.23
                    
nuke :add-package trgenvsc --version 0.23.23
                    

trgenvsc

Summary

Generate a VSCode extension and LSP server for an Antlr4 grammar.

Description

Generates a Visual Studio Code extension from an Antlr4 grammar. A CSharp target must be available for the grammar as the LSP server is implemented in C#.

After generating the extension/server, proceed to building the extension by changing to the "Generated-vsc/" directory, then running "bash install.sh". The install.sh script performs the build of the C# server, and the TypeScript extension. The script will also create a settings.rc JSON file that describes the syntactic highlighting for the grammar. The script calls an auxilary Python program to examine the grammar for single-character string literals, and using the Unicode category to group these in a common class with a particular color. You can modify the settings.rc file to perform semantic highlighting by adjusting the XPath patterns to match certain parse trees.

Usage

trgenvsc <options>* 

Examples

trgenvsc

Current version

0.23.23 (Updates to trgen templates.)

License

The MIT License

Copyright (c) 2024 Ken Domino

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.23.23 1,219 7/6/2025
0.23.22 693 6/27/2025
0.23.21 1,872 6/6/2025
0.23.20 440 6/4/2025
0.23.19 431 6/4/2025
0.23.18 1,511 5/13/2025
0.23.17 4,354 3/7/2025
0.23.16 585 3/4/2025
0.23.15 214 2/25/2025
0.23.14 723 2/9/2025
0.23.13 469 1/19/2025
0.23.12 472 1/16/2025
0.23.11 2,715 12/18/2024
0.23.10 198 12/12/2024
0.23.9 188 11/29/2024
0.23.8 229 11/1/2024
0.23.7 4,342 10/9/2024
0.23.6 832 9/21/2024
0.23.5 224 9/15/2024
0.23.4 215 9/7/2024
Loading failed

# trgenvsc
## Summary
Generate a VSCode extension and LSP server for an Antlr4 grammar.
## Description
Generates a Visual Studio Code extension from an Antlr4 grammar. A CSharp
target must be available for the grammar as the LSP server is implemented
in C#.
After generating the extension/server, proceed to building the extension
by changing to the "Generated-vsc/" directory, then running "bash install.sh".
The install.sh script performs the build of the C# server, and the TypeScript
extension. The script will also create a settings.rc JSON file that describes
the syntactic highlighting for the grammar. The script calls an auxilary Python
program to examine the grammar for single-character string literals, and using
the Unicode category to group these in a common class with a particular color.
You can modify the settings.rc file to perform semantic highlighting by adjusting
the XPath patterns to match certain parse trees.
## Usage
trgenvsc <options>*
## Examples
trgenvsc
## Current version
0.23.23 (Updates to trgen templates.)
## License
The MIT License
Copyright (c) 2024 Ken Domino
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software and
associated documentation files (the "Software"), to
deal in the Software without restriction, including
without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom
the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice
shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.