VOOZH about

URL: https://www.nuget.org/packages/Silverfly/

⇱ NuGet Gallery | Silverfly 1.7.0


ο»Ώ

Silverfly 1.7.0

dotnet add package Silverfly --version 1.7.0
 
 
NuGet\Install-Package Silverfly -Version 1.7.0
 
 
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="Silverfly" Version="1.7.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Silverfly" Version="1.7.0" />
 
Directory.Packages.props
<PackageReference Include="Silverfly" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Silverfly --version 1.7.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Silverfly, 1.7.0"
 
 
#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.
#:package Silverfly@1.7.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Silverfly&version=1.7.0
 
Install as a Cake Addin
#tool nuget:?package=Silverfly&version=1.7.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Silverfly

πŸ‘ 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.

Features

  • Flexible Parsing: Supports Pratt parsing for complex expression handling.
  • Extensible: Easily extend the parser and lexer with custom rules.
  • Documentation: Comprehensive instructions available in the wiki.

Installation

To install Silverfly, you can use NuGet:

dotnet add package Silverfly

Usage

ο»Ώ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.

Contributing

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

NuGet packages (5)

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

GitHub repositories

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
Loading failed