Parseidon.Helper 3.1.3

dotnet add package Parseidon.Helper --version 3.1.3
                    
NuGet\Install-Package Parseidon.Helper -Version 3.1.3
                    
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="Parseidon.Helper" Version="3.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Parseidon.Helper" Version="3.1.3" />
                    
Directory.Packages.props
<PackageReference Include="Parseidon.Helper" />
                    
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 Parseidon.Helper --version 3.1.3
                    
#r "nuget: Parseidon.Helper, 3.1.3"
                    
#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 Parseidon.Helper@3.1.3
                    
#: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=Parseidon.Helper&version=3.1.3
                    
Install as a Cake Addin
#tool nuget:?package=Parseidon.Helper&version=3.1.3
                    
Install as a Cake Tool

Parseidon.Helper

Utility helpers for parser and tooling development. Also used internally by Parseidon. Project home: https://github.com/parseidon/parseidon

Install

dotnet add package Parseidon.Helper

Included utilities

ScopedStack<T>

  • EnterScope() / ExitScope() start and end logical scopes; items pushed after EnterScope belong to that scope depth.
  • Push(T item) stores an item at the current scope.
  • Pop() removes and returns the most-recent item in the current or child scope; throws if none found.
  • Peek() returns (without removing) the most-recent item in the current or child scope; throws if none found.
  • TryPeek() returns the most-recent item or null if no item exists.
  • GetItemsInCurrentAndChildScopes() enumerates items that are at or below the current scope depth.

StringExtensions

  • ReplaceAt(string source, int index, int length, string replacement) replaces a substring; throws if the range is invalid.
  • ReplaceAll((string Search, string Replace)[] rules) applies multiple replacements in a single scan (first matching rule wins per position).
  • ContainsNewLine(string input) detects any newline character (CR, LF, NEL, LS, PS).
  • Unescape(string value) converts common escape sequences (\n, \r, \t, quotes, backslash, etc.).
  • FormatLiteral(string value, bool useQuotes) returns a C#-style escaped literal; wraps in quotes when useQuotes is true.
  • TrimLineEndWhitespace(string input) removes trailing spaces or tabs at line ends (multiline-aware).

Usage

using Parseidon.Helper;

var stack = new ScopedStack<string>();
stack.EnterScope();
stack.Push("root");
stack.EnterScope();
stack.Push("child");
string current = stack.Peek(); // "child"
stack.ExitScope();

string literal = "Hello\nworld".FormatLiteral(useQuotes: true);
// literal => "\"Hello\\nworld\""
  • Parseidon.Parser consumes these helpers when compiling grammars.
  • Parseidon.SourceGen ships them alongside the analyzer so generator code runs without extra references.
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Parseidon.Helper:

Package Downloads
Parseidon.Parser

Parser generator library for creating parsers for Domain Specific Languages (DSLs) in .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.3 191 1/8/2026
3.1.2 165 1/4/2026
3.1.1 260 12/19/2025
3.1.0 258 12/19/2025
3.0.0 336 12/19/2025
2.2.1 328 12/19/2025
2.2.0 331 12/17/2025
2.1.0 331 12/15/2025
2.0.2 211 12/14/2025
2.0.1 230 12/14/2025
2.0.0 221 12/14/2025
1.0.2 271 11/3/2025
1.0.1 211 11/1/2025