STRling 4.0.3
dotnet add package STRling --version 4.0.3
NuGet\Install-Package STRling -Version 4.0.3
<PackageReference Include="STRling" Version="4.0.3" />
<PackageVersion Include="STRling" Version="4.0.3" />
<PackageReference Include="STRling" />
paket add STRling --version 4.0.3
#r "nuget: STRling, 4.0.3"
#:package STRling@4.0.3
#addin nuget:?package=STRling&version=4.0.3
#tool nuget:?package=STRling&version=4.0.3
STRling — C# adapter
STRling 4.0.3 public installation requires the separately authorized release. Check the release certificate for public availability and independent acceptance. Candidate tests use staged artifacts; certification alone does not prove publication. See the support matrix for exact supported scopes.
The C# package is an idiomatic facade over the canonical STRling compiler. It
constructs canonical requests, calls the governed strling.c-abi v1 native
library, and returns canonical JSON results. It does not contain a parser,
compiler, target emitter, or regex engine.
The adapter delegates to the canonical kernel; historical compatibility fixtures do not restore retired compiler APIs.
Semantic STRling is the flagship textual language. Regex-compatible text is an import/compatibility surface, not Semantic STRling. STRling 4.0 uses one canonical pipeline for Semantic, Simply, and explicit compatibility requests.
Install and load
The STRling package targets net9.0. Its currently certified package row is
win-x64; other RIDs are not implied. Native loading always uses an explicit
absolute path and never searches the current directory, PATH, or the network.
using System.Text.Json;
using Strling;
using Strling.Native;
using Strling.Simply;
var nativePath = Path.Combine(AppContext.BaseDirectory, "strling_interop.dll");
using var client = NativeClient.Load(nativePath);
var compiler = new Compiler(client);
JsonElement result = compiler.Parse(
"semantic strling 1.0; case sensitive; pattern text \"hello\";",
new SourceCompileOptions { SourceId = "src:example" });
if (result.GetProperty("outcome").GetString() != "succeeded")
throw new InvalidOperationException(result.ToString());
Console.WriteLine(result.GetProperty("outcome").GetString());
Target artifacts require an exact caller-supplied target profile reference. The adapter never chooses a default target.
Simply
The Simply facade records the canonical Simply 1.1 protocol. Compilation also
goes through the native client; Pattern.ToString() and Pattern.Exec()
intentionally refuse local regex rendering or execution.
var projection = JsonSerializer.SerializeToElement(new
{
requested_outputs = new[] { "semantic" },
compiler_options = new
{
partial_semantics = "forbid",
diagnostic_policy = new { minimum_severity = "hint" },
},
});
var pattern = S.Merge(S.Start(), Essential.Email(), S.End());
JsonElement simplyResult = pattern.Compile(client, projection);
if (simplyResult.GetProperty("status").GetString() != "success" ||
simplyResult.GetProperty("compile_result").GetProperty("outcome").GetString() != "succeeded")
throw new InvalidOperationException(simplyResult.ToString());
Essential exposes five registered lexical_shape helpers across eight exact
variants. These helpers intentionally recognize lexical shapes and may accept
semantically invalid values; they are not semantic validators.
Errors and lifecycle
NativeClient is reentrant, safe for concurrent calls, and IDisposable.
Native load, ABI, transport, protocol, and closed-client failures use distinct
stable exception identities. Canonical compiler failures remain canonical
results and diagnostics rather than being rewritten as host semantics.
See the repository specification and architecture for normative contracts.
Product compatibility
Fourth Edition packages require the exact 4.0.3 native product identity in addition to ABI 1 and protocol 1.0.0. Dynamic loaders check the bounded binary product marker before loading; installed CMake packages check their static archive during configuration. Unmarked older kernels and mismatched product versions fail closed. This package check does not authenticate arbitrary local files; release checksums and signed evidence authenticate distribution bytes. The compiler semantics and versioned ABI/protocol are unchanged.
Proposed public installation
After separately authorized publication, the exact proposed coordinate is:
dotnet add package STRling --version 4.0.3
Use only the runtime, OS, CPU and native/WASM loading scope declared above and in the support matrix.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on STRling:
| Package | Downloads |
|---|---|
|
STRling.FSharp
Canonical F# facade over the shared STRling .NET adapter. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.3 | 76 | 11/19/2026 |
| 4.0.1 | 82 | 11/17/2026 |
| 4.0.0 | 100 | 11/16/2026 |
| 3.0.0 | 128 | 4/19/2026 |
| 3.0.0-alpha | 114 | 4/19/2026 |