Warpstone 2.0.0-preview1

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

// Install Warpstone as a Cake Tool
#tool nuget:?package=Warpstone&version=2.0.0-preview1&prerelease                

CircleCI CodeCov NuGet

<img src="https://raw.githubusercontent.com/CptWesley/Warpstone/master/logo_1024x1024.png" width="178" height="178">

Warpstone

Parser combinator forged deep within Ikit's forges in the Under-City from a shard of Morrslieb itself.

What is it?

Warpstone is a parser combinator library written in C# targetting .NET Standard 2.0, meaning that it can be used by any application running either .NET Framework >= 4.6.1, .NET Core >= 2.0 or Mono >= 5.4. The main focus of the library is to provide a powerful lightweight parser combinator framework for developers to create their own parsers with.

Why did you make it?

After following a course on compiler construction I was intrigued and wanted a way of parsing languages within code without requiring external tools to generate a parser for me first. During my quest I stumbled upon the concept of parser combinators and started looking for existing libraries for .NET. I soon stumbled upon Pidgin. After toying around with the library for a bit I felt dissatisfied with some of its syntax and I still felt like I didn't fully understand the concepts it was using behind the scenes. This led me to create my own parser combinator library, with syntax inspired by Pidgin.

Why the name? (Or: What are all those strange words in the description?!?!?)

Coming up with names is difficult, I wanted to get the project started and at the time I was consumed by the Warhammer Fantasy universe.

Downloads

NuGet

Usage

It's useful to take a look at one of the available example projects for JSON parsing and expression parsing.

To start off, one first needs to add (one of) the following imports:

using Warpstone;
using static Warpstone.Parsers.BasicParsers;
using static Warpstone.Parsers.CommonParsers;
using static Warpstone.Parsers.ExpressionParsers;
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 was computed. 
.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
2.0.0-preview1 130 11/30/2023
1.1.0-preview5 166 8/2/2022
1.1.0-preview4 267 7/11/2021
1.1.0-preview3 264 7/11/2021
1.1.0-preview2 247 7/9/2021
1.1.0-preview1 246 7/9/2021
1.0.8.2-preview2 256 6/29/2021
1.0.8.2-alpha 292 6/18/2021
1.0.8.1 364 5/25/2021
1.0.8 345 5/25/2021
1.0.7.1 451 11/26/2020
1.0.7 399 11/24/2020
1.0.6.1 450 10/17/2020
1.0.6 385 10/17/2020
1.0.5 394 10/16/2020
1.0.4 418 9/12/2020
1.0.3.3 415 9/12/2020
1.0.3.2 440 9/12/2020
1.0.3.1 446 9/12/2020
1.0.3 470 9/12/2020
1.0.2 512 5/2/2020
1.0.1 484 4/4/2020
1.0.0 491 4/4/2020

### v2.0.0
     - Reworked library from scratch.
     - Changed to Packrat parsing.
     - Added support for left-recursion.