Redpoint.Lexer 2026.1257.763

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.1257.763
                    
NuGet\Install-Package Redpoint.Lexer -Version 2026.1257.763
                    
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.1257.763" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Redpoint.Lexer" Version="2026.1257.763" />
                    
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.1257.763
                    
#r "nuget: Redpoint.Lexer, 2026.1257.763"
                    
#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.1257.763
                    
#: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.1257.763
                    
Install as a Cake Addin
#tool nuget:?package=Redpoint.Lexer&version=2026.1257.763
                    
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.1259.914 0 9/16/2026
2026.1259.871 0 9/16/2026
2026.1259.851 0 9/16/2026
2026.1259.716 0 9/16/2026
2026.1259.677 0 9/16/2026
2026.1257.763 44 9/14/2026
2026.1257.741 48 9/14/2026
2026.1257.611 41 9/14/2026
2026.1257.606 43 9/14/2026
2026.1254.463 55 9/11/2026
2026.1253.413 72 9/10/2026
2026.1253.351 61 9/10/2026
2026.1253.309 67 9/10/2026
2026.1253.296 53 9/10/2026
2026.1253.294 56 9/10/2026
2026.1253.293 57 9/10/2026
2026.1252.1055 63 9/9/2026
2026.1252.751 59 9/9/2026
2026.1252.567 77 9/9/2026
2026.1252.562 81 9/9/2026
Loading failed