Redpoint.Lexer 2024.1177.305

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

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

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.1270.409 41 9/26/2024
2024.1269.621 30 9/25/2024
2024.1269.619 27 9/25/2024
2024.1269.605 26 9/25/2024
2024.1242.282 89 8/29/2024
2024.1242.261 85 8/29/2024
2024.1242.233 83 8/29/2024
2024.1238.829 119 8/25/2024
2024.1238.327 114 8/25/2024
2024.1225.297 101 8/12/2024
2024.1205.140 92 7/23/2024
2024.1204.110 76 7/22/2024
2024.1204.62 84 7/22/2024
2024.1190.491 105 7/8/2024
2024.1177.305 91 6/25/2024
2024.1168.700 107 6/16/2024
2024.1168.649 104 6/16/2024
2024.1168.535 107 6/16/2024
2024.1167.643 107 6/15/2024
2024.1166.989 104 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 100 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 81 6/13/2024
2024.1165.830 91 6/13/2024
2024.1165.806 91 6/13/2024
2024.1165.794 93 6/13/2024
2024.1165.792 93 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 88 6/13/2024
2024.1165.466 103 6/13/2024
2024.1165.417 100 6/13/2024
2024.1165.392 102 6/13/2024
2024.1164.341 96 6/12/2024
2024.1155.941 106 6/3/2024
2024.1140.783 108 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 96 4/8/2024
2024.1098.573 103 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 108 4/3/2024
2024.1094.910 103 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 112 3/29/2024
2024.1089.983 103 3/29/2024
2024.1089.942 106 3/29/2024
2024.1089.2 122 3/29/2024
2024.1088.1343 120 3/28/2024
2024.1088.1139 129 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 118 3/28/2024
2024.1088.561 110 3/28/2024
2024.1088.506 111 3/28/2024
2024.1088.18 120 3/28/2024
2024.1087.1181 127 3/27/2024
2024.1087.1173 115 3/27/2024
2024.1087.1143 110 3/27/2024
2024.1087.1108 119 3/27/2024
2024.1087.950 106 3/27/2024
2024.1087.939 125 3/27/2024
2024.1087.252 106 3/27/2024
2024.1070.736 132 3/10/2024
2024.1049.1437 111 2/19/2024
2024.1036.571 115 2/5/2024
2024.1036.508 109 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 96 1/31/2024
2024.1031.851 108 1/31/2024
2024.1031.829 87 1/31/2024
2024.1031.386 109 1/31/2024
2024.1031.318 97 1/31/2024
2024.1017.460 123 1/17/2024
2024.1017.420 109 1/17/2024
2024.1017.163 106 1/17/2024