STRling.FSharp 4.0.3

dotnet add package STRling.FSharp --version 4.0.3
                    
NuGet\Install-Package STRling.FSharp -Version 4.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="STRling.FSharp" Version="4.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="STRling.FSharp" Version="4.0.3" />
                    
Directory.Packages.props
<PackageReference Include="STRling.FSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add STRling.FSharp --version 4.0.3
                    
#r "nuget: STRling.FSharp, 4.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package STRling.FSharp@4.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=STRling.FSharp&version=4.0.3
                    
Install as a Cake Addin
#tool nuget:?package=STRling.FSharp&version=4.0.3
                    
Install as a Cake Tool

STRling — F# 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 STRling.FSharp package is an idiomatic F# projection over the shared C# STRling adapter and the canonical native compiler. It does not own another native transport, parser, compiler, Semantic IR interpretation, target emitter, or regex engine.

Migration status: the canonical native adapter is implemented. Historical fixtures are compatibility evidence, not the compiler boundary.

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 package targets net9.0, depends on STRling at the same product version and pinned FSharp.Core 9.0.300, and currently certifies only the win-x64 native row. Loading requires an explicit absolute native path.

open System
open System.IO
open STRling.FSharp

let nativePath = Path.Combine(AppContext.BaseDirectory, "strling_interop.dll")

use client = Api.loadClient nativePath
let compiler = Api.createCompiler client
let options = { Api.defaultOptions () with SourceId = "src:example" }

match Api.parse compiler "semantic strling 1.0; case sensitive; pattern text \"hello\";" (Some options) with
| Succeeded result -> printfn "%s" (result.GetProperty("outcome").GetString())
| Failed result -> failwith (result.ToString())

The CompileOutcome union projects the canonical result outcome. Diagnostics, artifacts, paths, spans, and other canonical values remain JsonElement data; the facade does not reinterpret them. Target artifacts require an exact caller-supplied profile and reference.

Simply and standard helpers

The F# facade exposes the same canonical Simply builder types from the shared C# package plus generated Essential helper functions. Five registered helpers produce eight exact lexical_shape variants. Lexical-shape acceptance is intentionally distinct from semantic validity; these helpers are not semantic validators.

Errors and lifecycle

The shared NativeClient is reentrant and disposable. Native load, ABI, transport, protocol, and closed-client failures retain the stable C# adapter exception identities. The F# layer adds projections only and cannot create a second native route or host-owned compiler behavior.

See the repository specification and architecture for normative contracts.

Proposed public installation

After separately authorized publication, the exact proposed coordinate is:

dotnet add package STRling.FSharp --version 4.0.3

Use only the runtime, OS, CPU and native/WASM loading scope declared above and in the support matrix.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.3 87 11/19/2026
3.0.0 130 4/19/2026