Redpoint.Lexer 2024.1205.140

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

// Install Redpoint.Lexer as a Cake Tool
#tool nuget:?package=Redpoint.Lexer&version=2024.1205.140                

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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
2024.1242.282 62 8/29/2024
2024.1242.261 60 8/29/2024
2024.1242.233 64 8/29/2024
2024.1238.829 97 8/25/2024
2024.1238.327 76 8/25/2024
2024.1225.297 64 8/12/2024
2024.1205.140 71 7/23/2024
2024.1204.110 72 7/22/2024
2024.1204.62 63 7/22/2024
2024.1190.491 84 7/8/2024
2024.1177.305 74 6/25/2024
2024.1168.700 85 6/16/2024
2024.1168.649 83 6/16/2024
2024.1168.535 85 6/16/2024
2024.1167.643 86 6/15/2024
2024.1166.989 81 6/14/2024
2024.1166.818 77 6/14/2024
2024.1166.535 82 6/14/2024
2024.1166.422 78 6/14/2024
2024.1166.362 83 6/14/2024
2024.1166.360 79 6/14/2024
2024.1165.1212 78 6/13/2024
2024.1165.1160 78 6/13/2024
2024.1165.1019 76 6/13/2024
2024.1165.978 76 6/13/2024
2024.1165.920 73 6/13/2024
2024.1165.908 75 6/13/2024
2024.1165.873 77 6/13/2024
2024.1165.830 72 6/13/2024
2024.1165.806 76 6/13/2024
2024.1165.794 73 6/13/2024
2024.1165.792 72 6/13/2024
2024.1165.761 73 6/13/2024
2024.1165.743 78 6/13/2024
2024.1165.735 77 6/13/2024
2024.1165.713 77 6/13/2024
2024.1165.640 79 6/13/2024
2024.1165.574 84 6/13/2024
2024.1165.466 82 6/13/2024
2024.1165.417 81 6/13/2024
2024.1165.392 80 6/13/2024
2024.1164.341 75 6/12/2024
2024.1155.941 84 6/3/2024
2024.1140.783 88 5/19/2024
2024.1140.692 79 5/19/2024
2024.1140.673 90 5/19/2024
2024.1129.506 79 5/8/2024
2024.1128.831 99 5/7/2024
2024.1124.465 63 5/3/2024
2024.1123.1162 56 5/2/2024
2024.1123.1117 50 5/2/2024
2024.1123.1050 44 5/2/2024
2024.1122.352 83 5/1/2024
2024.1122.233 72 5/1/2024
2024.1115.1101 85 4/24/2024
2024.1115.1048 74 4/24/2024
2024.1115.932 74 4/24/2024
2024.1115.858 80 4/24/2024
2024.1115.665 86 4/24/2024
2024.1115.648 85 4/24/2024
2024.1115.591 87 4/24/2024
2024.1101.390 91 4/10/2024
2024.1100.741 89 4/9/2024
2024.1099.526 88 4/8/2024
2024.1099.466 79 4/8/2024
2024.1098.573 82 4/7/2024
2024.1095.977 78 4/4/2024
2024.1095.847 80 4/4/2024
2024.1095.604 78 4/4/2024
2024.1095.485 84 4/4/2024
2024.1094.930 87 4/3/2024
2024.1094.910 83 4/3/2024
2024.1094.387 92 4/3/2024
2024.1094.313 84 4/3/2024
2024.1093.520 75 4/2/2024
2024.1092.240 87 4/1/2024
2024.1089.1425 96 3/29/2024
2024.1089.983 82 3/29/2024
2024.1089.942 85 3/29/2024
2024.1089.2 100 3/29/2024
2024.1088.1343 96 3/28/2024
2024.1088.1139 79 3/28/2024
2024.1088.875 85 3/28/2024
2024.1088.700 83 3/28/2024
2024.1088.603 68 3/28/2024
2024.1088.590 86 3/28/2024
2024.1088.575 85 3/28/2024
2024.1088.561 89 3/28/2024
2024.1088.506 88 3/28/2024
2024.1088.18 99 3/28/2024
2024.1087.1181 93 3/27/2024
2024.1087.1173 94 3/27/2024
2024.1087.1143 87 3/27/2024
2024.1087.1108 102 3/27/2024
2024.1087.950 73 3/27/2024
2024.1087.939 97 3/27/2024
2024.1087.252 86 3/27/2024
2024.1070.736 105 3/10/2024
2024.1049.1437 94 2/19/2024
2024.1036.571 99 2/5/2024
2024.1036.508 77 2/5/2024
2024.1032.1204 91 2/1/2024
2024.1032.1133 88 2/1/2024
2024.1032.1122 90 2/1/2024
2024.1032.1071 77 2/1/2024
2024.1032.940 84 2/1/2024
2024.1031.912 82 1/31/2024
2024.1031.893 78 1/31/2024
2024.1031.851 72 1/31/2024
2024.1031.829 72 1/31/2024
2024.1031.386 81 1/31/2024
2024.1031.318 80 1/31/2024
2024.1017.460 105 1/17/2024
2024.1017.420 93 1/17/2024
2024.1017.163 91 1/17/2024