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
15 changes: 14 additions & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
|:-|-:|:-|
| [![Состояние Actions](https://github.com/link-foundation/links-notation/workflows/rust/badge.svg)](https://github.com/link-foundation/links-notation/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/link-foundation/links-notation/workflows/csharp/badge.svg)](https://github.com/link-foundation/links-notation/actions?workflow=csharp) | [![Версия NuGet пакета и количество загрузок](https://img.shields.io/nuget/v/Link.Foundation.Links.Notation?label=nuget&style=flat)](https://www.nuget.org/packages/Link.Foundation.Links.Notation) | **[C#](csharp/README.ru.md)** |
| [![Состояние Actions](https://github.com/link-foundation/links-notation/workflows/python/badge.svg)](https://github.com/link-foundation/links-notation/actions?workflow=python) | [![Версия PyPI и количество загрузок](https://img.shields.io/pypi/v/links-notation?label=pypi&style=flat)](https://pypi.org/project/links-notation/) | **[Python](python/README.ru.md)** |

[![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/link-foundation/links-notation)
[![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=link-foundation/links-notation)
Expand Down Expand Up @@ -43,10 +44,18 @@ const links = parser.parse("папа (любитМаму: любит маму)")
### Rust

```rust
use lino::parse_lino;
use links_notation::parse_lino;
let links = parse_lino("папа (любитМаму: любит маму)").unwrap();
```

### Python

```python
from links_notation import Parser
parser = Parser()
links = parser.parse("папа (любитМаму: любит маму)")
```

## Примеры

### Нотация связей
Expand Down Expand Up @@ -113,9 +122,13 @@ let links = parse_lino("папа (любитМаму: любит маму)").unw
веб-разработки
- **[README Rust](rust/README.ru.md)** - Руководство по
высокопроизводительному парсингу
- **[README Python](python/README.ru.md)** - Руководство по работе с пакетом Python

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

- [Сравнение возможностей](FEATURE_COMPARISON.md) - Анализ возможностей LINO
по сравнению с YAML/XML/JSON

- [PDF Документация](https://link-foundation.github.io/links-notation/csharp/Link.Foundation.Links.Notation.pdf)
\- Полный справочник для офлайн чтения
- [Теория связей 0.0.2](https://habr.com/ru/articles/804617) -
Expand Down
18 changes: 9 additions & 9 deletions csharp/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Lino Protocol Parser for C#
# Links Notation Parser for C#

C# implementation of the Lino protocol parser using Pegasus parser
C# implementation of the Links Notation parser using Pegasus parser
generator and Platform.Collections.

## Installation

### Package Manager

```text
Install-Package Platform.Protocols.Lino
Install-Package Link.Foundation.Links.Notation
```

### .NET CLI

```bash
dotnet add package Platform.Protocols.Lino
dotnet add package Link.Foundation.Links.Notation
```

### PackageReference

```xml
<PackageReference Include="Platform.Protocols.Lino" Version="0.4.5" />
<PackageReference Include="Link.Foundation.Links.Notation" Version="0.9.0" />
```

## Build from Source
Expand All @@ -30,7 +30,7 @@ Clone the repository and build:
```bash
git clone https://github.com/link-foundation/links-notation.git
cd links-notation/csharp
dotnet build Platform.Protocols.Lino.sln
dotnet build Link.Foundation.Links.Notation.sln
```

## Test
Expand All @@ -46,12 +46,12 @@ dotnet test
### Basic Parsing

```csharp
using Platform.Protocols.Lino;
using Link.Foundation.Links.Notation;

// Create parser
var parser = new Parser();

// Parse Lino format string
// Parse Links Notation format string
string input = @"papa (lovesMama: loves mama)
son lovesMama
daughter lovesMama
Expand All @@ -69,7 +69,7 @@ foreach (var link in links)
### Converting Back to String

```csharp
using Platform.Protocols.Lino;
using Link.Foundation.Links.Notation;

// Format links back to string
string formatted = links.Format();
Expand Down
18 changes: 9 additions & 9 deletions csharp/README.ru.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Парсер протокола Lino для C&#35;
# Парсер Links Notation для C&#35;

Реализация парсера протокола Lino для C&#35; с использованием генератора
Реализация парсера Links Notation для C&#35; с использованием генератора
парсеров Pegasus и Platform.Collections.

## Установка

### Менеджер пакетов

```text
Install-Package Platform.Protocols.Lino
Install-Package Link.Foundation.Links.Notation
```

### .NET CLI

```bash
dotnet add package Platform.Protocols.Lino
dotnet add package Link.Foundation.Links.Notation
```

### PackageReference

```xml
<PackageReference Include="Platform.Protocols.Lino" Version="0.4.5" />
<PackageReference Include="Link.Foundation.Links.Notation" Version="0.9.0" />
```

## Сборка из исходного кода
Expand All @@ -30,7 +30,7 @@ dotnet add package Platform.Protocols.Lino
```bash
git clone https://github.com/link-foundation/links-notation.git
cd links-notation/csharp
dotnet build Platform.Protocols.Lino.sln
dotnet build Link.Foundation.Links.Notation.sln
```

## Тестирование
Expand All @@ -46,12 +46,12 @@ dotnet test
### Базовый парсинг

```csharp
using Platform.Protocols.Lino;
using Link.Foundation.Links.Notation;

// Создаем парсер
var parser = new Parser();

// Парсим строку в формате Lino
// Парсим строку в формате Links Notation
string input = @"папа (любитМаму: любит маму)
сын любитМаму
дочь любитМаму
Expand All @@ -69,7 +69,7 @@ foreach (var link in links)
### Преобразование обратно в строку

```csharp
using Platform.Protocols.Lino;
using Link.Foundation.Links.Notation;

// Форматирование связей обратно в строку
string formatted = links.Format();
Expand Down
26 changes: 13 additions & 13 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Platform.Protocols.Lino - Python
# Links Notation Parser for Python

[![PyPI version](https://img.shields.io/pypi/v/platform-lino.svg)](https://pypi.org/project/platform-lino/)
[![Python versions](https://img.shields.io/pypi/pyversions/platform-lino.svg)](https://pypi.org/project/platform-lino/)
[![PyPI version](https://img.shields.io/pypi/v/links-notation.svg)](https://pypi.org/project/links-notation/)
[![Python versions](https://img.shields.io/pypi/pyversions/links-notation.svg)](https://pypi.org/project/links-notation/)
[![License](https://img.shields.io/badge/license-Unlicense-blue.svg)](../LICENSE)

Python implementation of the Lino (Links Notation) protocol parser.
Python implementation of the Links Notation parser.

## Installation

```bash
pip install platform-lino
pip install links-notation
```

## Quick Start

```python
from platform_lino import Parser
from links_notation import Parser

parser = Parser()
links = parser.parse("papa (lovesMama: loves mama)")
Expand All @@ -30,7 +30,7 @@ for link in links:
### Basic Parsing

```python
from platform_lino import Parser, format_links
from links_notation import Parser, format_links

parser = Parser()

Expand All @@ -47,7 +47,7 @@ print(output) # (papa: loves mama)
### Working with Link Objects

```python
from platform_lino import Link
from links_notation import Link

# Create links programmatically
link = Link('parent', [Link('child1'), Link('child2')])
Expand Down Expand Up @@ -81,13 +81,13 @@ links = parser.parse(text)

### Parser

The main parser class for Lino notation.
The main parser class for Links Notation.

- `parse(input_text: str) -> List[Link]`: Parse Lino text into Link objects
- `parse(input_text: str) -> List[Link]`: Parse Links Notation text into Link objects

### Link

Represents a link in Lino notation.
Represents a link in Links Notation.

- `__init__(id: Optional[str] = None, values: Optional[List[Link]] = None)`
- `format(less_parentheses: bool = False) -> str`: Format as string
Expand All @@ -96,7 +96,7 @@ Represents a link in Lino notation.

### format_links

Format a list of links into Lino notation.
Format a list of links into Links Notation.

- `format_links(links: List[Link], less_parentheses: bool = False) -> str`

Expand Down Expand Up @@ -159,5 +159,5 @@ This project is released into the public domain under the [Unlicense](../LICENSE
## Links

- [Main Repository](https://github.com/link-foundation/links-notation)
- [PyPI Package](https://pypi.org/project/platform-lino/)
- [PyPI Package](https://pypi.org/project/links-notation/)
- [Documentation](https://link-foundation.github.io/links-notation/)
Loading
Loading