Redpoint.Lexer 2024.1328.452

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

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

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.1328.505 26 11/23/2024
2024.1328.470 25 11/23/2024
2024.1328.452 29 11/23/2024
2024.1323.910 65 11/18/2024
2024.1323.653 65 11/18/2024
2024.1323.185 61 11/18/2024
2024.1323.49 61 11/18/2024
2024.1322.714 67 11/17/2024
2024.1320.653 68 11/15/2024
2024.1320.619 61 11/15/2024
2024.1320.601 74 11/15/2024
2024.1320.159 65 11/15/2024
2024.1320.98 64 11/15/2024
2024.1320.2 58 11/15/2024
2024.1319.1431 63 11/15/2024
2024.1319.1335 67 11/14/2024
2024.1317.631 66 11/12/2024
2024.1316.330 77 11/11/2024
2024.1311.540 68 11/6/2024
2024.1306.225 68 11/1/2024
2024.1306.199 65 11/1/2024
2024.1306.171 71 11/1/2024
2024.1306.117 67 11/1/2024
2024.1305.506 68 10/31/2024
2024.1305.502 66 10/31/2024
2024.1305.465 63 10/31/2024
2024.1305.442 64 10/31/2024
2024.1305.399 66 10/31/2024
2024.1299.1070 67 10/25/2024
2024.1289.621 87 10/15/2024
2024.1289.338 78 10/15/2024
2024.1277.836 86 10/5/2024
2024.1277.711 88 10/3/2024
2024.1277.695 87 10/3/2024
2024.1270.409 89 9/26/2024
2024.1269.621 76 9/25/2024
2024.1269.619 75 9/25/2024
2024.1269.605 75 9/25/2024
2024.1242.282 98 8/29/2024
2024.1242.261 93 8/29/2024
2024.1242.233 93 8/29/2024
2024.1238.829 128 8/25/2024
2024.1238.327 124 8/25/2024
2024.1225.297 109 8/12/2024
2024.1205.140 100 7/23/2024
2024.1204.110 83 7/22/2024
2024.1204.62 91 7/22/2024
2024.1190.491 110 7/8/2024
2024.1177.305 96 6/25/2024
2024.1168.700 111 6/16/2024
2024.1168.649 108 6/16/2024
2024.1168.535 111 6/16/2024
2024.1167.643 110 6/15/2024
2024.1166.989 107 6/14/2024
2024.1166.818 100 6/14/2024
2024.1166.535 102 6/14/2024
2024.1166.422 99 6/14/2024
2024.1166.362 102 6/14/2024
2024.1166.360 103 6/14/2024
2024.1165.1212 103 6/13/2024
2024.1165.1160 103 6/13/2024
2024.1165.1019 85 6/13/2024
2024.1165.978 101 6/13/2024
2024.1165.920 81 6/13/2024
2024.1165.908 98 6/13/2024
2024.1165.873 85 6/13/2024
2024.1165.830 95 6/13/2024
2024.1165.806 95 6/13/2024
2024.1165.794 97 6/13/2024
2024.1165.792 97 6/13/2024
2024.1165.761 95 6/13/2024
2024.1165.743 99 6/13/2024
2024.1165.735 113 6/13/2024
2024.1165.713 84 6/13/2024
2024.1165.640 109 6/13/2024
2024.1165.574 96 6/13/2024
2024.1165.466 111 6/13/2024
2024.1165.417 108 6/13/2024
2024.1165.392 110 6/13/2024
2024.1164.341 104 6/12/2024
2024.1155.941 114 6/3/2024
2024.1140.783 118 5/19/2024
2024.1140.692 99 5/19/2024
2024.1140.673 126 5/19/2024
2024.1129.506 99 5/8/2024
2024.1128.831 122 5/7/2024
2024.1124.465 83 5/3/2024
2024.1123.1162 80 5/2/2024
2024.1123.1117 73 5/2/2024
2024.1123.1050 63 5/2/2024
2024.1122.352 103 5/1/2024
2024.1122.233 95 5/1/2024
2024.1115.1101 108 4/24/2024
2024.1115.1048 97 4/24/2024
2024.1115.932 115 4/24/2024
2024.1115.858 87 4/24/2024
2024.1115.665 118 4/24/2024
2024.1115.648 105 4/24/2024
2024.1115.591 110 4/24/2024
2024.1101.390 112 4/10/2024
2024.1100.741 110 4/9/2024
2024.1099.526 112 4/8/2024
2024.1099.466 99 4/8/2024
2024.1098.573 106 4/7/2024
2024.1095.977 129 4/4/2024
2024.1095.847 104 4/4/2024
2024.1095.604 112 4/4/2024
2024.1095.485 108 4/4/2024
2024.1094.930 115 4/3/2024
2024.1094.910 108 4/3/2024
2024.1094.387 115 4/3/2024
2024.1094.313 138 4/3/2024
2024.1093.520 110 4/2/2024
2024.1092.240 123 4/1/2024
2024.1089.1425 117 3/29/2024
2024.1089.983 108 3/29/2024
2024.1089.942 111 3/29/2024
2024.1089.2 125 3/29/2024
2024.1088.1343 123 3/28/2024
2024.1088.1139 132 3/28/2024
2024.1088.875 107 3/28/2024
2024.1088.700 109 3/28/2024
2024.1088.603 108 3/28/2024
2024.1088.590 109 3/28/2024
2024.1088.575 121 3/28/2024
2024.1088.561 113 3/28/2024
2024.1088.506 114 3/28/2024
2024.1088.18 125 3/28/2024
2024.1087.1181 132 3/27/2024
2024.1087.1173 118 3/27/2024
2024.1087.1143 113 3/27/2024
2024.1087.1108 124 3/27/2024
2024.1087.950 109 3/27/2024
2024.1087.939 130 3/27/2024
2024.1087.252 111 3/27/2024
2024.1070.736 137 3/10/2024
2024.1049.1437 116 2/19/2024
2024.1036.571 118 2/5/2024
2024.1036.508 116 2/5/2024
2024.1032.1204 114 2/1/2024
2024.1032.1133 112 2/1/2024
2024.1032.1122 112 2/1/2024
2024.1032.1071 98 2/1/2024
2024.1032.940 110 2/1/2024
2024.1031.912 104 1/31/2024
2024.1031.893 103 1/31/2024
2024.1031.851 111 1/31/2024
2024.1031.829 92 1/31/2024
2024.1031.386 112 1/31/2024
2024.1031.318 102 1/31/2024
2024.1017.460 128 1/17/2024
2024.1017.420 112 1/17/2024
2024.1017.163 111 1/17/2024