diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94b23e7..b1d928a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,9 +96,10 @@ jobs: - name: Pack Libraries run: | - dotnet pack Generator/Esolang.Piet.Generator.csproj -c Release -o artifacts/nuget - dotnet pack Parser/Esolang.Piet.Parser.csproj -c Release -o artifacts/nuget - dotnet pack Processor/Esolang.Piet.Processor.csproj -c Release -o artifacts/nuget + dotnet pack Interpreter/Esolang.Piet.Interpreter.csproj -c Release -o artifacts/aot --no-build + dotnet pack Generator/Esolang.Piet.Generator.csproj -c Release -o artifacts/nuget --no-build + dotnet pack Parser/Esolang.Piet.Parser.csproj -c Release -o artifacts/nuget --no-build + dotnet pack Processor/Esolang.Piet.Processor.csproj -c Release -o artifacts/nuget --no-build - name: Publish to NuGet.org env: diff --git a/Processor/README.md b/Processor/README.md index 4c9c7d0..f465690 100644 --- a/Processor/README.md +++ b/Processor/README.md @@ -14,7 +14,7 @@ dotnet add package Esolang.Piet.Processor ### Basic Usage (Event Streaming) -イベントをストリーミングして処理する場合の基本的なアプローチです。 +This is the basic approach for processing events as a stream. ```csharp using Esolang.Piet.Parser; @@ -32,21 +32,21 @@ await foreach (var ev in processor.RunAsyncEnumerable()) ### Simplified Execution (Extensions) -`Esolang.Processor.Extensions.IO` パッケージを使用して、終了コードと出力先を指定して簡潔に実行するアプローチです。 +This approach uses the `Esolang.Processor.Extensions.IO` package to run the processor with an explicit exit code and output target. ```csharp using Esolang.Piet.Parser; using Esolang.Piet.Processor; using Esolang.Processor; -using Esolang.Processor.Extensions.IO; // Esolang.Processor.Extensions.IO パッケージが必要 +using Esolang.Processor.Extensions.IO; // Requires the Esolang.Processor.Extensions.IO package var program = PietParser.Parse("hello-world.png"); var processor = new PietProcessor(program); -// 出力先を準備 +// Prepare an output sink using var output = new StringWriter(); -// 実行して終了コードを取得(出力はTextWriter引数経由) +// Execute and get the exit code (output is written through the TextWriter argument) int exitCode = await processor.RunToEndAsync(output: output); Console.WriteLine($"Exit code: {exitCode}"); diff --git a/README.md b/README.md index d41538e..7cbb6ec 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ For detailed Generator signatures, patterns, and source specification (including | Attribute Argument | `partial` Method Parameters (Input) | `partial` Method Return Types (Output) | | :--- | :--- | :--- | -| `string` (Path/Inline) | `byte[]?` (Image Data) | `void`, `string`, `string?`, `int`, `Task`, `ValueTask`, `IEnumerable`, `IAsyncEnumerable` | +| `string` (Path/Inline) | `string`, `TextReader`, `PipeReader` | `void`, `int`, `Task`, `ValueTask`, `string`, `Task`, `ValueTask`, `IEnumerable`, `IAsyncEnumerable` | ## Implementation Status