![]() |
VOOZH | about |
dotnet add package Silverfly --version 1.7.0
NuGet\Install-Package Silverfly -Version 1.7.0
<PackageReference Include="Silverfly" Version="1.7.0" />
<PackageVersion Include="Silverfly" Version="1.7.0" />Directory.Packages.props
<PackageReference Include="Silverfly" />Project file
paket add Silverfly --version 1.7.0
#r "nuget: Silverfly, 1.7.0"
#:package Silverfly@1.7.0
#addin nuget:?package=Silverfly&version=1.7.0Install as a Cake Addin
#tool nuget:?package=Silverfly&version=1.7.0Install as a Cake Tool
π CodeFactor
π NuGet Version
π NuGet Downloads
π License: MIT
π Discord
π Libraries.io SourceRank
Silverfly is a versatile parsing framework that provides extensive support for building custom parsers with ease. It supports Pratt parsing, a powerful method for parsing expressions and statements in a flexible manner.
To install Silverfly, you can use NuGet:
dotnet add package Silverfly
ο»Ώusing Silverfly;
namespace Sample;
public class Program
{
public static void Main(string[] args)
{
while (true)
{
Console.Write("> ");
var input = Console.ReadLine();
var parsed = new ExpressionGrammar().Parse(input);
var context = new EvaluationContext();
EvaluationListener.Listener.Listen(context, parsed.Tree);
Console.WriteLine("> " + evaluated);
}
}
}
For more detailed instructions and advanced usage, please refer to the wiki. A great example can be found here
Silverfly uses the brilliant library from MrKWatkins to build an AST.
We welcome contributions! Please see our contributing guidelines for more details on how to get involved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Silverfly:
| Package | Downloads |
|---|---|
|
Furesoft.Core
Package Description |
|
|
Silverfly.Testing
A little framework to build parsers |
|
|
Silverfly.Repl
A little framework to build parsers |
|
|
Silverfly.Backend
Helpers to convert from Silverfly to a Distil backend |
|
|
Silverfly.Sample.Func
A full blown example of Silverfly |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.0 | 178 | 10/11/2025 |
| 1.6.0 | 252 | 8/24/2025 |
| 1.2.0 | 262 | 12/14/2024 |
| 1.0.80 | 241 | 11/10/2024 |
| 1.0.79 | 245 | 11/10/2024 |
| 1.0.78 | 230 | 11/7/2024 |
| 1.0.77 | 227 | 11/1/2024 |
| 1.0.76 | 221 | 11/1/2024 |
| 1.0.75 | 219 | 11/1/2024 |
| 1.0.74 | 324 | 10/19/2024 |
| 1.0.73 | 215 | 10/12/2024 |
| 1.0.72 | 227 | 10/12/2024 |
| 1.0.71 | 222 | 10/12/2024 |
| 1.0.70 | 255 | 10/3/2024 |
| 1.0.69 | 220 | 9/27/2024 |
| 1.0.68 | 259 | 8/27/2024 |
| 1.0.67 | 250 | 8/7/2024 |
| 1.0.66 | 231 | 7/24/2024 |
| 1.0.65 | 226 | 7/10/2024 |
| 1.0.64 | 212 | 7/6/2024 |