Cs.Antlr 0.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Cs.Antlr --version 0.0.2                
NuGet\Install-Package Cs.Antlr -Version 0.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cs.Antlr" Version="0.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cs.Antlr --version 0.0.2                
#r "nuget: Cs.Antlr, 0.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cs.Antlr as a Cake Addin
#addin nuget:?package=Cs.Antlr&version=0.0.2

// Install Cs.Antlr as a Cake Tool
#tool nuget:?package=Cs.Antlr&version=0.0.2                

alternate text is missing from this package README image

.NET publish nuget

Cs.Antlr

Antlr4.StringTemplate를 사용하는 모듈입니다.

현재는 간단하게 Antlr4.StringTemplet.TempletGroup 타입의 인스턴스를 생성하고 캐싱해두는 기능만을 제공합니다.

아래의 예시와 같이 사용합니다.

Getting Started

if (StringTemplateFactory.Instance.Initialize(config.Path.TextTemplate) == false)
{
    Log.Error($"TextTemplate initialize failed.");
    return false;
}

...

// create template from file
var template = StringTemplateFactory.Instance.CreateFromFile("Template_enum.stg", "writeFile");

// or create templet from string
StringTempletFactory.Instance.CreateFromStgring("sourceName", "templateSourceBody...");
templet = StringTempletFactory.Instance.GetTemplet("sourceName", "writeFile");

templet.Add("model", this);

using (var sw = new StreamWriter(outputFilePath, append: false, Encoding.UTF8))
{
    sw.WriteLine(template.Render());
}

Prerequisites

  • .net SDK 8.0

Installation

download from nuget.org

dotnet add package Cs.Antlr

License

This project is licensed under the MIT License. For details, see the License File.

Contact

mailto: github@studiobside.com

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.3 77 10/22/2024
0.0.2 96 10/22/2024
0.0.1 87 10/22/2024

first release