Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ jobs:
- name: Check if version already published to NuGet.org
id: nuget-version-check
run: |
PACKAGE_VERSION=$(grep '<VersionPrefix>' Platform.Protocols.Lino/Platform.Protocols.Lino.csproj | sed 's/.*<VersionPrefix>\(.*\)<\/VersionPrefix>.*/\1/')
PACKAGE_ID="Platform.Protocols.Lino"
PACKAGE_VERSION=$(grep '<VersionPrefix>' LinkFoundation.LinksNotation/LinkFoundation.LinksNotation.csproj | sed 's/.*<VersionPrefix>\(.*\)<\/VersionPrefix>.*/\1/')
PACKAGE_ID="LinkFoundation.LinksNotation"
echo "Package: $PACKAGE_ID@$PACKAGE_VERSION"
# Check if version exists on NuGet.org
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# [Protocols.Lino](https://github.com/linksplatform/Protocols.Lino) (languages: en • [ru](README.ru.md))

| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/js/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=js) | [![npm Version and Downloads count](https://img.shields.io/npm/v/@linksplatform/protocols-lino?label=npm&style=flat)](https://www.npmjs.com/package/@linksplatform/protocols-lino) | **[JavaScript](js/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/js/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=js) | [![npm Version and Downloads count](https://img.shields.io/npm/v/links-notation?label=npm&style=flat)](https://www.npmjs.com/package/links-notation) | **[JavaScript](js/README.md)** |
|:-|-:|:-|
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/rust/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=rust) | [![Crates.io Version and Downloads count](https://img.shields.io/crates/v/platform-lino?label=crates.io&style=flat)](https://crates.io/crates/platform-lino) | **[Rust](rust/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/csharp/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=csharp) | [![NuGet Version and Downloads count](https://img.shields.io/nuget/v/Platform.Protocols.Lino?label=nuget&style=flat)](https://www.nuget.org/packages/Platform.Protocols.Lino) | **[C#](csharp/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/python/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=python) | [![PyPI Version and Downloads count](https://img.shields.io/pypi/v/platform-lino?label=pypi&style=flat)](https://pypi.org/project/platform-lino/) | **[Python](python/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/rust/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=rust) | [![Crates.io Version and Downloads count](https://img.shields.io/crates/v/links-notation?label=crates.io&style=flat)](https://crates.io/crates/links-notation) | **[Rust](rust/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/csharp/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=csharp) | [![NuGet Version and Downloads count](https://img.shields.io/nuget/v/LinkFoundation.LinksNotation?label=nuget&style=flat)](https://www.nuget.org/packages/LinkFoundation.LinksNotation) | **[C#](csharp/README.md)** |
| [![Actions Status](https://github.com/linksplatform/Protocols.Lino/workflows/python/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=python) | [![PyPI Version and Downloads count](https://img.shields.io/pypi/v/links-notation?label=pypi&style=flat)](https://pypi.org/project/links-notation/) | **[Python](python/README.md)** |

[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/linksplatform/Protocols.Lino)
[![Open in GitHub Codespaces](https://img.shields.io/badge/GitHub%20Codespaces-Open-181717?logo=github)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=linksplatform/Protocols.Lino)
Expand All @@ -29,29 +29,29 @@ number of references to other links.
### C&#35;

```csharp
var parser = new Platform.Protocols.Lino.Parser();
var parser = new LinkFoundation.LinksNotation.Parser();
var links = parser.Parse("papa (lovesMama: loves mama)");
```

### JavaScript

```javascript
import { Parser } from '@linksplatform/protocols-lino';
import { Parser } from 'links-notation';
const parser = new Parser();
const links = parser.parse("papa (lovesMama: loves mama)");
```

### Rust

```rust
use lino::parse_lino;
use links_notation::parse_lino;
let links = parse_lino("papa (lovesMama: loves mama)").unwrap();
```

### Python

```python
from platform_lino import Parser
from links_notation import Parser
parser = Parser()
links = parser.parse("papa (lovesMama: loves mama)")
```
Expand Down
16 changes: 8 additions & 8 deletions README.ru.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# [Protocols.Lino](https://github.com/linksplatform/Protocols.Lino) (languages: [en](README.md) • ru)

| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/js/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=js) | [![Версия npm пакета и количество загрузок](https://img.shields.io/npm/v/@linksplatform/protocols-lino?label=npm&style=flat)](https://www.npmjs.com/package/@linksplatform/protocols-lino) | **[JavaScript](js/README.ru.md)** |
| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/js/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=js) | [![Версия npm пакета и количество загрузок](https://img.shields.io/npm/v/links-notation?label=npm&style=flat)](https://www.npmjs.com/package/links-notation) | **[JavaScript](js/README.ru.md)** |
|:-|-:|:-|
| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/rust/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=rust) | [![Версия Crates.io и количество загрузок](https://img.shields.io/crates/v/platform-lino?label=crates.io&style=flat)](https://crates.io/crates/platform-lino) | **[Rust](rust/README.ru.md)** |
| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/csharp/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=csharp) | [![Версия NuGet пакета и количество загрузок](https://img.shields.io/nuget/v/Platform.Protocols.Lino?label=nuget&style=flat)](https://www.nuget.org/packages/Platform.Protocols.Lino) | **[C#](csharp/README.ru.md)** |
| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/rust/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=rust) | [![Версия Crates.io и количество загрузок](https://img.shields.io/crates/v/links-notation?label=crates.io&style=flat)](https://crates.io/crates/links-notation) | **[Rust](rust/README.ru.md)** |
| [![Состояние Actions](https://github.com/linksplatform/Protocols.Lino/workflows/csharp/badge.svg)](https://github.com/linksplatform/Protocols.Lino/actions?workflow=csharp) | [![Версия NuGet пакета и количество загрузок](https://img.shields.io/nuget/v/LinkFoundation.LinksNotation?label=nuget&style=flat)](https://www.nuget.org/packages/LinkFoundation.LinksNotation) | **[C#](csharp/README.ru.md)** |

[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/linksplatform/Protocols.Lino)
[![Open in GitHub Codespaces](https://img.shields.io/badge/GitHub%20Codespaces-Open-181717?logo=github)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=linksplatform/Protocols.Lino)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4e7eb0a883e9439280c1097381d46b50)](https://app.codacy.com/gh/linksplatform/Protocols.Lino?utm_source=github.com&utm_medium=referral&utm_content=linksplatform/Protocols.Lino&utm_campaign=Badge_Grade_Settings)
[![CodeFactor](https://www.codefactor.io/repository/github/linksplatform/Protocols.Lino/badge)](https://www.codefactor.io/repository/github/linksplatform/Protocols.Lino)

Библиотека классов ПлатформыСвязей Platform.Protocols.Lino.
Библиотека классов ПлатформыСвязей LinkFoundation.LinksNotation.

![introduction](./docs/comparison/comparison.svg "сравнение json, xml и lino")

Expand All @@ -28,14 +28,14 @@
### C&#35;

```csharp
var parser = new Platform.Protocols.Lino.Parser();
var parser = new LinkFoundation.LinksNotation.Parser();
var links = parser.Parse("папа (любитМаму: любит маму)");
```

### JavaScript

```javascript
import { Parser } from '@linksplatform/protocols-lino';
import { Parser } from 'links-notation';
const parser = new Parser();
const links = parser.parse("папа (любитМаму: любит маму)");
```
Expand Down Expand Up @@ -106,7 +106,7 @@ let links = parse_lino("папа (любитМаму: любит маму)").unw
Для подробных руководств по реализации и справочников API смотрите
документацию для конкретных языков:

- **[Документация C#](https://linksplatform.github.io/Protocols.Lino/csharp/api/Platform.Protocols.Lino.html)**
- **[Документация C#](https://linksplatform.github.io/Protocols.Lino/csharp/api/LinkFoundation.LinksNotation.html)**
\- Полный справочник API
- **[README C#](csharp/README.ru.md)** - Руководство по установке и использованию
- **[README JavaScript](js/README.ru.md)** - Руководство для современной
Expand All @@ -116,7 +116,7 @@ let links = parse_lino("папа (любитМаму: любит маму)").unw

Дополнительные ресурсы:

- [PDF Документация](https://linksplatform.github.io/Protocols.Lino/csharp/Platform.Protocols.Lino.pdf)
- [PDF Документация](https://linksplatform.github.io/Protocols.Lino/csharp/LinkFoundation.LinksNotation.pdf)
\- Полный справочник для офлайн чтения
- [Теория связей 0.0.2](https://habr.com/ru/articles/804617) -
Теоретическая основа, которую Нотация Связей полностью поддерживает
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class ApiTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class EdgeCaseParserTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class IndentedIdSyntaxTests
{
Expand Down Expand Up @@ -39,7 +39,7 @@
Assert.Single(result);
Assert.Equal("greeting", result[0].Id);
Assert.Single(result[0].Values);
Assert.Equal("hello", result[0].Values[0].Id);

Check warning on line 42 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.

Check warning on line 42 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}

[Fact]
Expand All @@ -57,7 +57,7 @@
Assert.Equal("(action: run fast now)", formatted);
Assert.Single(result);
Assert.Equal("action", result[0].Id);
Assert.Equal(3, result[0].Values.Count);

Check warning on line 60 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.

Check warning on line 60 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}

[Fact]
Expand Down Expand Up @@ -150,7 +150,7 @@

Assert.Single(result);
Assert.Equal("empty", result[0].Id);
Assert.True(result[0].Values == null || result[0].Values.Count == 0);

Check warning on line 153 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.

var formatted = result.Format();
Assert.Equal("(empty)", formatted);
Expand Down Expand Up @@ -195,7 +195,7 @@

var rootLink = result[0];
Assert.Equal("root", rootLink.Id);
Assert.Equal(2, rootLink.Values.Count);

Check warning on line 198 in csharp/LinkFoundation.LinksNotation.Tests/IndentedIdSyntaxTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Platform.Protocols.Lino.Tests</RootNamespace>
<RootNamespace>LinkFoundation.LinksNotation.Tests</RootNamespace>
<NoWarn>$(NoWarn);CS8981;CS1591;CS1584;CS1658</NoWarn>
</PropertyGroup>

Expand All @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Platform.Protocols.Lino\Platform.Protocols.Lino.csproj" />
<ProjectReference Include="..\LinkFoundation.LinksNotation\LinkFoundation.LinksNotation.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Xunit;
using System.Collections.Generic;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class LinkTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class LinksGroupTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class MixedIndentationModesTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class MultilineParserTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class MultilineQuotedStringTests
{
Expand All @@ -26,7 +26,7 @@
var link = result[0];
Assert.Null(link.Id);
Assert.NotNull(link.Values);
Assert.Equal(2, link.Values.Count);

Check warning on line 29 in csharp/LinkFoundation.LinksNotation.Tests/MultilineQuotedStringTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.

Assert.Equal(@"long
string literal representing
Expand All @@ -52,7 +52,7 @@
Assert.Null(link.Id);
Assert.NotNull(link.Values);
Assert.Single(link.Values);
Assert.Equal("line1\nline2", link.Values[0].Id);

Check warning on line 55 in csharp/LinkFoundation.LinksNotation.Tests/MultilineQuotedStringTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}

[Fact]
Expand All @@ -70,7 +70,7 @@
Assert.Null(link.Id);
Assert.NotNull(link.Values);
Assert.Single(link.Values);
Assert.Equal("line1\nline2", link.Values[0].Id);

Check warning on line 73 in csharp/LinkFoundation.LinksNotation.Tests/MultilineQuotedStringTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}

[Fact]
Expand All @@ -88,6 +88,6 @@
var link = result[0];
Assert.Equal("multi\nline\nid", link.Id);
Assert.NotNull(link.Values);
Assert.Equal(2, link.Values.Count);

Check warning on line 91 in csharp/LinkFoundation.LinksNotation.Tests/MultilineQuotedStringTests.cs

View workflow job for this annotation

GitHub Actions / test

Dereference of a possibly null reference.
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class NestedParserTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public static class SingleLineParserTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Collections.Generic;
using Xunit;
using Link = Platform.Protocols.Lino.Link<string>;
using id = Platform.Protocols.Lino.id<string>;
using _ = Platform.Protocols.Lino._<string>;
using Link = LinkFoundation.LinksNotation.Link<string>;
using id = LinkFoundation.LinksNotation.id<string>;
using _ = LinkFoundation.LinksNotation._<string>;

namespace Platform.Protocols.Lino.Tests
namespace LinkFoundation.LinksNotation.Tests
{
public class TupleTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29424.173
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Platform.Protocols.Lino", "Platform.Protocols.Lino\Platform.Protocols.Lino.csproj", "{32B7D0AD-ED13-4B2B-90FC-000F94C4BECA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LinkFoundation.LinksNotation", "LinkFoundation.LinksNotation\LinkFoundation.LinksNotation.csproj", "{32B7D0AD-ED13-4B2B-90FC-000F94C4BECA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Platform.Protocols.Lino.Tests", "Platform.Protocols.Lino.Tests\Platform.Protocols.Lino.Tests.csproj", "{98C50F40-6CC2-4E40-A2BE-30163DCF5220}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LinkFoundation.LinksNotation.Tests", "LinkFoundation.LinksNotation.Tests\LinkFoundation.LinksNotation.Tests.csproj", "{98C50F40-6CC2-4E40-A2BE-30163DCF5220}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Runtime.CompilerServices;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// Provides extension methods for collections of <see cref="LinksGroup{TLinkAddress}"/> instances.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Runtime.CompilerServices;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// Provides extension methods for formatting collections of <see cref="Link{TLinkAddress}"/> instances.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Platform.Collections;
using Platform.Collections.Lists;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// Represents a link in the Lino protocol with an optional identifier and nested values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<PropertyGroup>
<Description>LinksPlatform's Platform.Protocols.Lino Class Library</Description>
<Copyright>Konstantin Diachenko</Copyright>
<AssemblyTitle>Platform.Protocols.Lino</AssemblyTitle>
<VersionPrefix>0.7.0</VersionPrefix>
<AssemblyTitle>LinkFoundation.LinksNotation</AssemblyTitle>
<VersionPrefix>0.8.0</VersionPrefix>
<Authors>Konstantin Diachenko</Authors>
<TargetFramework>net8</TargetFramework>
<PackageId>Platform.Protocols.Lino</PackageId>
<PackageId>LinkFoundation.LinksNotation</PackageId>
<PackageTags>LinksPlatform;Protocols.Lino;Lino;IListExtensions;Link;Parser</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/linksplatform/Documentation/18469f4d033ee9a5b7b84caab9c585acab2ac519/doc/Avatar-rainbow-icon-64x64.png</PackageIconUrl>
<PackageProjectUrl>https://linksplatform.github.io/Protocols.Lino</PackageProjectUrl>
Expand All @@ -26,7 +26,7 @@
(:) and : syntax for empty links is now forbidden, to reduce confusion.
Singlet links are supported, no more point link terminology.</PackageReleaseNotes>
<Nullable>enable</Nullable>
<RootNamespace>Platform.Protocols.Lino</RootNamespace>
<RootNamespace>LinkFoundation.LinksNotation</RootNamespace>
<NoWarn>$(NoWarn);CS8981;CS1591;CS1584;CS1658</NoWarn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Platform.Collections;
using Platform.Collections.Lists;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// Represents a group of links with hierarchical structure, where each group contains a primary link and optional nested groups.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@namespace Platform.Protocols.Lino
@namespace LinkFoundation.LinksNotation
@classname Parser
@using System.Linq
document <IList<Link<string>>> = #{ state["IndentationStack"] = new Stack<int>(); state["IndentationStack"].Push(0); } _ l:links eof { l.ToLinksList() } / #{ state["IndentationStack"] = new Stack<int>(); state["IndentationStack"].Push(0); } _ eof { new List<Link<string>>() }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// A utility struct that provides convenient implicit conversions for creating links from various tuple combinations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;

namespace Platform.Protocols.Lino
namespace LinkFoundation.LinksNotation
{
/// <summary>
/// A readonly struct that explicitly represents a link identifier/address.
Expand Down
14 changes: 7 additions & 7 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ Install the package using your preferred package manager:
#### Using npm (Node.js)

```bash
npm install @linksplatform/protocols-lino
npm install links-notation
```

#### Using Bun

```bash
bun add @linksplatform/protocols-lino
bun add links-notation
```

#### Using Deno

```typescript
import { Parser, Link } from "npm:@linksplatform/protocols-lino@^0.6.0";
import { Parser, Link } from "npm:links-notation@^0.6.0";
```

### Local Development Setup
Expand Down Expand Up @@ -78,7 +78,7 @@ bun test --watch
### Basic Parsing

```javascript
import { Parser, Link } from '@linksplatform/protocols-lino';
import { Parser, Link } from 'links-notation';

// Create parser
const parser = new Parser();
Expand All @@ -101,7 +101,7 @@ result.forEach(link => {
### Working with Links

```javascript
import { Link } from '@linksplatform/protocols-lino';
import { Link } from 'links-notation';

// Create links programmatically
const link = new Link('parent', [
Expand Down Expand Up @@ -129,7 +129,7 @@ const input = `parent
const parsed = await parser.parse(input);

// Work with groups
import { LinksGroup } from '@linksplatform/protocols-lino';
import { LinksGroup } from 'links-notation';
const group = new LinksGroup(parsed);
console.log(group.format());
```
Expand Down Expand Up @@ -214,6 +214,6 @@ Container for grouping related links.

## Package Information

- Package: `@linksplatform/protocols-lino`
- Package: `links-notation`
- Version: 0.1.0
- License: MIT
Loading
Loading