Redpoint.Lexer 2024.1320.653

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

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

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