LionWeb-CSharp-Generator
0.4.7
dotnet add package LionWeb-CSharp-Generator --version 0.4.7
NuGet\Install-Package LionWeb-CSharp-Generator -Version 0.4.7
<PackageReference Include="LionWeb-CSharp-Generator" Version="0.4.7" />
<PackageVersion Include="LionWeb-CSharp-Generator" Version="0.4.7" />
<PackageReference Include="LionWeb-CSharp-Generator" />
paket add LionWeb-CSharp-Generator --version 0.4.7
#r "nuget: LionWeb-CSharp-Generator, 0.4.7"
#:package LionWeb-CSharp-Generator@0.4.7
#addin nuget:?package=LionWeb-CSharp-Generator&version=0.4.7
#tool nuget:?package=LionWeb-CSharp-Generator&version=0.4.7
README
This project contains the .NET implementation of a generator that generates C# source code from a LionWeb M2 defined in LionCore (M3). The generator uses the Roslyn framework to generate C# ASTs and to unparse those to C# source files.
C# generator for M2 types
The code generator generates C# code from a language defined using the LionCore M3 types. Each language generates to a separate file. Each generated file contains:
- A
classfor eachAnnotationorConceptinstance, aninterfacefor eachInterfaceinstance, and anenumfor eachEnumerationinstance. - Each feature of a
Classifiergenerates into a regular field with a getter, a setter, and no default value. - An implementation of
INodeFactoryto create any concrete (i.e.: non-abstract)Classifierfrom this language.
Remarks:
- The generated
classes (eventually) extendNodeBase. The generatedinterfacees (eventually) extendINode. - The generated fields maintain the tree structure of the model.
| Product | Versions 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. |
-
net8.0
- Microsoft.CodeAnalysis (>= 4.14.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LionWeb-CSharp-Generator:
| Package | Downloads |
|---|---|
|
Strumenta.Sharplasu
A .NET library to build a custom, possibly mutable, Abstract Syntax Tree (AST) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.7 | 98 | 5/21/2026 |
| 0.4.6 | 98 | 5/5/2026 |
| 0.4.5 | 129 | 4/16/2026 |
| 0.4.4 | 114 | 4/10/2026 |
| 0.4.3 | 114 | 3/24/2026 |
| 0.4.2 | 117 | 3/17/2026 |
| 0.4.1 | 100 | 3/4/2026 |
| 0.4.0 | 128 | 1/21/2026 |
| 0.4.0-alpha.8 | 251 | 12/17/2025 |
| 0.4.0-alpha.7 | 235 | 12/15/2025 |
| 0.4.0-alpha.6 | 198 | 12/15/2025 |
| 0.4.0-alpha.5 | 474 | 12/1/2025 |
| 0.4.0-alpha.4 | 378 | 11/21/2025 |
| 0.4.0-alpha.3 | 375 | 11/20/2025 |
| 0.4.0-alpha.2 | 380 | 11/18/2025 |
| 0.4.0-alpha.1 | 169 | 10/14/2025 |
| 0.3.0 | 206 | 10/13/2025 |
| 0.3.0-rc.13 | 165 | 10/13/2025 |
| 0.3.0-rc.12 | 180 | 10/7/2025 |
| 0.3.0-rc.11 | 153 | 9/26/2025 |