Redpoint.Lexer 2024.1032.940

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.1032.940                
NuGet\Install-Package Redpoint.Lexer -Version 2024.1032.940                
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.1032.940" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Redpoint.Lexer --version 2024.1032.940                
#r "nuget: Redpoint.Lexer, 2024.1032.940"                
#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.1032.940

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

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.1306.225 29 11/1/2024
2024.1306.199 28 11/1/2024
2024.1306.171 31 11/1/2024
2024.1306.117 30 11/1/2024
2024.1305.506 30 10/31/2024
2024.1305.502 30 10/31/2024
2024.1305.465 29 10/31/2024
2024.1305.442 27 10/31/2024
2024.1305.399 29 10/31/2024
2024.1299.1070 62 10/25/2024
2024.1289.621 82 10/15/2024
2024.1289.338 72 10/15/2024
2024.1277.836 80 10/5/2024
2024.1277.711 82 10/3/2024
2024.1277.695 81 10/3/2024
2024.1270.409 85 9/26/2024
2024.1269.621 72 9/25/2024
2024.1269.619 71 9/25/2024
2024.1269.605 71 9/25/2024
2024.1242.282 95 8/29/2024
2024.1242.261 90 8/29/2024
2024.1242.233 90 8/29/2024
2024.1238.829 125 8/25/2024
2024.1238.327 121 8/25/2024
2024.1225.297 106 8/12/2024
2024.1205.140 97 7/23/2024
2024.1204.110 81 7/22/2024
2024.1204.62 88 7/22/2024
2024.1190.491 107 7/8/2024
2024.1177.305 93 6/25/2024
2024.1168.700 108 6/16/2024
2024.1168.649 105 6/16/2024
2024.1168.535 108 6/16/2024
2024.1167.643 107 6/15/2024
2024.1166.989 105 6/14/2024
2024.1166.818 97 6/14/2024
2024.1166.535 99 6/14/2024
2024.1166.422 96 6/14/2024
2024.1166.362 99 6/14/2024
2024.1166.360 100 6/14/2024
2024.1165.1212 101 6/13/2024
2024.1165.1160 100 6/13/2024
2024.1165.1019 82 6/13/2024
2024.1165.978 98 6/13/2024
2024.1165.920 77 6/13/2024
2024.1165.908 94 6/13/2024
2024.1165.873 82 6/13/2024
2024.1165.830 92 6/13/2024
2024.1165.806 92 6/13/2024
2024.1165.794 94 6/13/2024
2024.1165.792 94 6/13/2024
2024.1165.761 92 6/13/2024
2024.1165.743 96 6/13/2024
2024.1165.735 110 6/13/2024
2024.1165.713 81 6/13/2024
2024.1165.640 106 6/13/2024
2024.1165.574 93 6/13/2024
2024.1165.466 108 6/13/2024
2024.1165.417 105 6/13/2024
2024.1165.392 107 6/13/2024
2024.1164.341 101 6/12/2024
2024.1155.941 111 6/3/2024
2024.1140.783 115 5/19/2024
2024.1140.692 96 5/19/2024
2024.1140.673 123 5/19/2024
2024.1129.506 96 5/8/2024
2024.1128.831 119 5/7/2024
2024.1124.465 80 5/3/2024
2024.1123.1162 75 5/2/2024
2024.1123.1117 70 5/2/2024
2024.1123.1050 60 5/2/2024
2024.1122.352 100 5/1/2024
2024.1122.233 92 5/1/2024
2024.1115.1101 105 4/24/2024
2024.1115.1048 94 4/24/2024
2024.1115.932 112 4/24/2024
2024.1115.858 84 4/24/2024
2024.1115.665 115 4/24/2024
2024.1115.648 102 4/24/2024
2024.1115.591 107 4/24/2024
2024.1101.390 109 4/10/2024
2024.1100.741 107 4/9/2024
2024.1099.526 109 4/8/2024
2024.1099.466 97 4/8/2024
2024.1098.573 104 4/7/2024
2024.1095.977 126 4/4/2024
2024.1095.847 99 4/4/2024
2024.1095.604 107 4/4/2024
2024.1095.485 103 4/4/2024
2024.1094.930 110 4/3/2024
2024.1094.910 105 4/3/2024
2024.1094.387 110 4/3/2024
2024.1094.313 133 4/3/2024
2024.1093.520 105 4/2/2024
2024.1092.240 120 4/1/2024
2024.1089.1425 115 3/29/2024
2024.1089.983 105 3/29/2024
2024.1089.942 108 3/29/2024
2024.1089.2 122 3/29/2024
2024.1088.1343 120 3/28/2024
2024.1088.1139 130 3/28/2024
2024.1088.875 104 3/28/2024
2024.1088.700 106 3/28/2024
2024.1088.603 105 3/28/2024
2024.1088.590 106 3/28/2024
2024.1088.575 119 3/28/2024
2024.1088.561 110 3/28/2024
2024.1088.506 112 3/28/2024
2024.1088.18 120 3/28/2024
2024.1087.1181 129 3/27/2024
2024.1087.1173 115 3/27/2024
2024.1087.1143 110 3/27/2024
2024.1087.1108 121 3/27/2024
2024.1087.950 106 3/27/2024
2024.1087.939 125 3/27/2024
2024.1087.252 108 3/27/2024
2024.1070.736 132 3/10/2024
2024.1049.1437 113 2/19/2024
2024.1036.571 115 2/5/2024
2024.1036.508 110 2/5/2024
2024.1032.1204 109 2/1/2024
2024.1032.1133 109 2/1/2024
2024.1032.1122 109 2/1/2024
2024.1032.1071 95 2/1/2024
2024.1032.940 107 2/1/2024
2024.1031.912 101 1/31/2024
2024.1031.893 98 1/31/2024
2024.1031.851 108 1/31/2024
2024.1031.829 88 1/31/2024
2024.1031.386 109 1/31/2024
2024.1031.318 99 1/31/2024
2024.1017.460 125 1/17/2024
2024.1017.420 109 1/17/2024
2024.1017.163 108 1/17/2024