![]() |
VOOZH | about |
dotnet add package Link.Foundation.Links.Notation --version 0.13.0
NuGet\Install-Package Link.Foundation.Links.Notation -Version 0.13.0
<PackageReference Include="Link.Foundation.Links.Notation" Version="0.13.0" />
<PackageVersion Include="Link.Foundation.Links.Notation" Version="0.13.0" />Directory.Packages.props
<PackageReference Include="Link.Foundation.Links.Notation" />Project file
paket add Link.Foundation.Links.Notation --version 0.13.0
#r "nuget: Link.Foundation.Links.Notation, 0.13.0"
#:package Link.Foundation.Links.Notation@0.13.0
#addin nuget:?package=Link.Foundation.Links.Notation&version=0.13.0Install as a Cake Addin
#tool nuget:?package=Link.Foundation.Links.Notation&version=0.13.0Install as a Cake Tool
C# implementation of the Links Notation parser using Pegasus parser generator and Platform.Collections.
Install-Package Link.Foundation.Links.Notation
dotnet add package Link.Foundation.Links.Notation
<PackageReference Include="Link.Foundation.Links.Notation" Version="0.9.0" />
Clone the repository and build:
git clone https://github.com/link-foundation/links-notation.git
cd links-notation/csharp
dotnet build Link.Foundation.Links.Notation.sln
Run tests:
dotnet test
using Link.Foundation.Links.Notation;
// Create parser
var parser = new Parser();
// Parse Links Notation format string
string input = @"papa (lovesMama: loves mama)
son lovesMama
daughter lovesMama
all (love mama)";
var links = parser.Parse(input);
// Access parsed links
foreach (var link in links)
{
Console.WriteLine(link.ToString());
}
using Link.Foundation.Links.Notation;
// Format links back to string
string formatted = links.Format();
Console.WriteLine(formatted);
// Create link programmatically
var link = new Link<string>("id", new[] { "value1", "value2" });
// Access link properties
Console.WriteLine($"ID: {link.Id}");
foreach (var value in link.Values)
{
Console.WriteLine($"Value: {value}");
}
// Using numeric link addresses
var parser = new Parser<ulong>();
var numericLinks = parser.Parse("(1: 2 3)");
// Working with custom address types
var customParser = new Parser<Guid>();
papa (lovesMama: loves mama)
son lovesMama
daughter lovesMama
all (love mama)
papa has car
mama has house
(papa and mama) are happy
(linksNotation: links notation)
(This is a linksNotation as well)
(linksNotation supports (unlimited number (of references) in each link))
Check code formatting:
dotnet format --verify-no-changes --verbosity diagnostic
Auto-fix formatting:
dotnet format
This project uses pre-commit hooks. To set up pre-commit hooks locally:
# From repository root
pip install pre-commit
pre-commit install
Note: C# formatting checks are integrated into the CI pipeline using
dotnet format.
This project uses dotnet format for code formatting.
dotnet format
dotnet format --verify-no-changes
These checks are also enforced in CI. Pull requests with formatting issues will fail the format check.
For complete API documentation, visit: Link.Foundation.Links.Notation Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Link.Foundation.Links.Notation:
| Package | Downloads |
|---|---|
|
Foundation.Data.Doublets.Cli
Public library exposing the parser, query processors, decorators, named/pinned types, persistent transformation triggers, and LiNo I/O used by the clink CLI. |
This package is not used by any popular GitHub repositories.
Bug fixes.
Test cases suite is updated.