Redpoint.Lexer 2026.1106.385

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Redpoint.Lexer --version 2026.1106.385
                    
NuGet\Install-Package Redpoint.Lexer -Version 2026.1106.385
                    
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="Redpoint.Lexer" Version="2026.1106.385" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Redpoint.Lexer" Version="2026.1106.385" />
                    
Directory.Packages.props
<PackageReference Include="Redpoint.Lexer" />
                    
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 Redpoint.Lexer --version 2026.1106.385
                    
#r "nuget: Redpoint.Lexer, 2026.1106.385"
                    
#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 Redpoint.Lexer@2026.1106.385
                    
#: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=Redpoint.Lexer&version=2026.1106.385
                    
Install as a Cake Addin
#tool nuget:?package=Redpoint.Lexer&version=2026.1106.385
                    
Install as a Cake Tool

Redpoint.Lexer

A zero-allocation, span-based lexing library for C#. You should also install Redpoint.Lexer.SourceGenerator.

This library is experimental. To declare lexing methods, create a partial class with partial methods like this:

public partial class TestLexer
{
    [LexerTokenizer("test")]
    public static partial ReadOnlySpan<char> ConsumeTest(ref ReadOnlySpan<char> span, ref LexerCursor cursor);

    [PermitNewlineContinuations]
    [LexerTokenizer("test")]
    public static partial LexerFragment ConsumeTestWithNewlines(ref ReadOnlySpan<char> span, ref LexerCursor cursor);

    [LexerTokenizer("[a-zA-Z_][a-zA-Z0-9_]*")]
    public static partial ReadOnlySpan<char> ConsumeWord(ref ReadOnlySpan<char> span, ref LexerCursor cursor);

    [PermitNewlineContinuations]
    [LexerTokenizer("[a-zA-Z_][a-zA-Z0-9_]*")]
    public static partial LexerFragment ConsumeWordWithNewlines(ref ReadOnlySpan<char> span, ref LexerCursor cursor);

    [LexerTokenizer("hello[0-9]wo[0-9]+rld[0-9]*done")]
    public static partial ReadOnlySpan<char> ConsumeAdvanced(ref ReadOnlySpan<char> span, ref LexerCursor cursor);
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Redpoint.Lexer:

Package Downloads
Redpoint.CppPreprocessor

Provides performant APIs for lexing and parsing preprocessor directives from C/C++ files.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.1113.797 94 4/23/2026
2026.1113.655 86 4/23/2026
2026.1113.584 93 4/23/2026
2026.1108.150 101 4/18/2026
2026.1108.149 81 4/18/2026
2026.1108.139 84 4/18/2026
2026.1108.135 83 4/18/2026
2026.1108.131 82 4/18/2026
2026.1107.232 92 4/17/2026
2026.1106.418 88 4/16/2026
2026.1106.417 89 4/16/2026
2026.1106.389 84 4/16/2026
2026.1106.385 87 4/16/2026
2026.1106.350 87 4/16/2026
2026.1106.336 87 4/16/2026
2026.1103.462 92 4/13/2026
2026.1103.428 93 4/13/2026
2026.1101.342 90 4/11/2026
2026.1101.283 85 4/11/2026
2026.1101.267 88 4/11/2026
Loading failed