Redpoint.Lexer
2024.1101.390
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Redpoint.Lexer --version 2024.1101.390
NuGet\Install-Package Redpoint.Lexer -Version 2024.1101.390
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.1101.390" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Redpoint.Lexer --version 2024.1101.390
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Redpoint.Lexer, 2024.1101.390"
#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.1101.390
// Install Redpoint.Lexer as a Cake Tool
#tool nuget:?package=Redpoint.Lexer&version=2024.1101.390
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.1115.1101 | 42 | 4/24/2024 |
2024.1115.1048 | 29 | 4/24/2024 |
2024.1115.932 | 35 | 4/24/2024 |
2024.1115.858 | 40 | 4/24/2024 |
2024.1115.665 | 46 | 4/24/2024 |
2024.1115.648 | 42 | 4/24/2024 |
2024.1115.591 | 40 | 4/24/2024 |
2024.1101.390 | 80 | 4/10/2024 |
2024.1100.741 | 77 | 4/9/2024 |
2024.1099.526 | 79 | 4/8/2024 |
2024.1099.466 | 71 | 4/8/2024 |
2024.1098.573 | 71 | 4/7/2024 |
2024.1095.977 | 69 | 4/4/2024 |
2024.1095.847 | 72 | 4/4/2024 |
2024.1095.604 | 69 | 4/4/2024 |
2024.1095.485 | 75 | 4/4/2024 |
2024.1094.930 | 77 | 4/3/2024 |
2024.1094.910 | 74 | 4/3/2024 |
2024.1094.387 | 82 | 4/3/2024 |
2024.1094.313 | 75 | 4/3/2024 |
2024.1093.520 | 64 | 4/2/2024 |
2024.1092.240 | 74 | 4/1/2024 |
2024.1089.1425 | 86 | 3/29/2024 |
2024.1089.983 | 73 | 3/29/2024 |
2024.1089.942 | 75 | 3/29/2024 |
2024.1089.2 | 88 | 3/29/2024 |
2024.1088.1343 | 84 | 3/28/2024 |
2024.1088.1139 | 67 | 3/28/2024 |
2024.1088.875 | 75 | 3/28/2024 |
2024.1088.700 | 74 | 3/28/2024 |
2024.1088.603 | 59 | 3/28/2024 |
2024.1088.590 | 76 | 3/28/2024 |
2024.1088.575 | 74 | 3/28/2024 |
2024.1088.561 | 80 | 3/28/2024 |
2024.1088.506 | 79 | 3/28/2024 |
2024.1088.18 | 88 | 3/28/2024 |
2024.1087.1181 | 82 | 3/27/2024 |
2024.1087.1173 | 83 | 3/27/2024 |
2024.1087.1143 | 76 | 3/27/2024 |
2024.1087.1108 | 95 | 3/27/2024 |
2024.1087.950 | 60 | 3/27/2024 |
2024.1087.939 | 83 | 3/27/2024 |
2024.1087.252 | 74 | 3/27/2024 |
2024.1070.736 | 91 | 3/10/2024 |
2024.1049.1437 | 85 | 2/19/2024 |
2024.1036.571 | 88 | 2/5/2024 |
2024.1036.508 | 67 | 2/5/2024 |
2024.1032.1204 | 80 | 2/1/2024 |
2024.1032.1133 | 77 | 2/1/2024 |
2024.1032.1122 | 78 | 2/1/2024 |
2024.1032.1071 | 67 | 2/1/2024 |
2024.1032.940 | 77 | 2/1/2024 |
2024.1031.912 | 73 | 1/31/2024 |
2024.1031.893 | 71 | 1/31/2024 |
2024.1031.851 | 66 | 1/31/2024 |
2024.1031.829 | 65 | 1/31/2024 |
2024.1031.386 | 74 | 1/31/2024 |
2024.1031.318 | 73 | 1/31/2024 |
2024.1017.460 | 95 | 1/17/2024 |
2024.1017.420 | 83 | 1/17/2024 |
2024.1017.163 | 82 | 1/17/2024 |