Silverfly 1.0.66
See the version list below for details.
dotnet add package Silverfly --version 1.0.66
NuGet\Install-Package Silverfly -Version 1.0.66
<PackageReference Include="Silverfly" Version="1.0.66" />
paket add Silverfly --version 1.0.66
#r "nuget: Silverfly, 1.0.66"
// Install Silverfly as a Cake Addin #addin nuget:?package=Silverfly&version=1.0.66 // Install Silverfly as a Cake Tool #tool nuget:?package=Silverfly&version=1.0.66
Silverfly
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 = Parser.Parse<ExpressionGrammar>(input);
var evaluated = parsed.Tree.Accept(new EvaluationVisitor());
Console.WriteLine("> " + evaluated);
}
}
}
For more detailed instructions and advanced usage, please refer to the Wiki. A great example can be found here
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 | 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. |
-
net8.0
- System.Collections.Immutable (>= 8.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Silverfly:
Package | Downloads |
---|---|
Furesoft.Core
Package Description |
|
Silverfly.Testing
A little framework to build parsers |
|
Silverfly.Repl
Out of the box repl for silverfly laguages |
|
Silverfly.Sample.Func
A full blown example of Silverfly |
GitHub repositories
This package is not used by any popular GitHub repositories.