Strumenta.Sharplasu 0.9.1

dotnet add package Strumenta.Sharplasu --version 0.9.1
NuGet\Install-Package Strumenta.Sharplasu -Version 0.9.1
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="Strumenta.Sharplasu" Version="0.9.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Strumenta.Sharplasu --version 0.9.1
#r "nuget: Strumenta.Sharplasu, 0.9.1"
#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 Strumenta.Sharplasu as a Cake Addin
#addin nuget:?package=Strumenta.Sharplasu&version=0.9.1

// Install Strumenta.Sharplasu as a Cake Tool
#tool nuget:?package=Strumenta.Sharplasu&version=0.9.1

Sharplasu - AST Library for .NET Standard

Sharplasu supplies the infrastructure to build a custom, possibly mutable, Abstract Syntax Tree (AST) using CSharp.

Sharplasu is part of the StarLasu family of libraries. The other libraries provide similar support in other languages. Sharplasu it is at an earlier stage of development compared to other StarLasu libraries.

As of version 0.9, we have ported a basic implementation of the most used features from Kolasu, including support for transformers and symbol resolution. These features have been ported with the objective of supporting building parsers up to our standard. Code generation support is still missing, therefore we do not have good support yet for building transpilers using Sharplasu.

The original Kolasu API for transformers is well suited for Kotlin, but it is not a perfect fit for C#. The two languages have strong similarities, but C# is more stringent when handling the inheritance of classes using Generics and it is less flexible in general when working with generics. For example, you can use wildcard generics in Kotlin, but not in C#. So, it should be considered in beta status and subject to improvements. You can participate to the discussion in the issues.

Sharplasu is integrated with ANTLR.

Tests

To run the included tests you need to have ANTLR installed to compile an example parser. You do not need to have the ANTLR tool installed to run the library. You can read the official documentation or our tutorial to learn how to install ANTLR.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.9.1 40 4/19/2024
0.9.0 132 9/20/2023
0.0.8 212 6/15/2023
0.0.7 110 6/12/2023
0.0.6 152 5/4/2023
0.0.5 934 4/5/2023
0.0.4 201 3/15/2023
0.0.3 248 1/27/2023
0.0.2 677 11/11/2022