AIGuiders.Platform.Modeling.Gdl.Parse.Deck
0.1.0
dotnet add package AIGuiders.Platform.Modeling.Gdl.Parse.Deck --version 0.1.0
NuGet\Install-Package AIGuiders.Platform.Modeling.Gdl.Parse.Deck -Version 0.1.0
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="AIGuiders.Platform.Modeling.Gdl.Parse.Deck" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AIGuiders.Platform.Modeling.Gdl.Parse.Deck" Version="0.1.0" />
<PackageReference Include="AIGuiders.Platform.Modeling.Gdl.Parse.Deck" />
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 AIGuiders.Platform.Modeling.Gdl.Parse.Deck --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AIGuiders.Platform.Modeling.Gdl.Parse.Deck, 0.1.0"
#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 AIGuiders.Platform.Modeling.Gdl.Parse.Deck@0.1.0
#: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=AIGuiders.Platform.Modeling.Gdl.Parse.Deck&version=0.1.0
#tool nuget:?package=AIGuiders.Platform.Modeling.Gdl.Parse.Deck&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AIGuiders.Platform.Modeling.Gdl.Parse.Deck
Parser for GDL deck documents: attention presets with typed topology wires, forward/MFD zone wiring and zone-role bindings, plus mapping onto the spine payload.
What you get
DeckParser.parse— one call from text to aDeckParseResult(Documentoption +Diagnostics); the source-path argument is currently unused, diagnostics carry line numbers from the text itself- Document shape (
DeckDocument):Planet,Presets, and aZoneBindingsmap ofzone-id -> role AttentionPreset— one named attention layout:topology (MFD)(F)— parsed throughTopologyNotationinto a typedPresentationTopology(fromAIGuiders.Platform.Modeling.Gdl.Presentation); invalid wires reportTopologyWireInvalidand leaveTopology = Noneforward <zone-id>— which zone owns the forward attention fieldmfd <zone> | <zone> ...— zones bound to the MFD hostseicas <policy>— when alerts may surface
zonesblock —zone-id = rolebindings with duplicate detection (DuplicateRow); malformed lines reportInvalidSyntaxDeckMapping.toDeckPayload— document to the spineDeckPayload(same field shape, ready forGdlFragment.DeckinAIGuiders.Platform.Modeling.Gdl.Core)- Diagnostics are typed
AuthoringDiagnosticfromAIGuiders.Platform.Modeling.Gdl.Authoring—MissingDeckHeader,InvalidSyntax,TopologyWireInvalid,DuplicateRow
Quick start
open AIGuiders.Platform.Modeling.Gdl.Parse.Deck
let result =
DeckParser.parse
"""deck studio
preset report-author
topology (MFD)(F)
forward report-preview
mfd spec-tree | resolve
eicas when alerts
end preset
zones
report-preview = forward
spec-tree = mfd
end zones
"""
None
let doc = Option.get result.Document // None + MissingDeckHeader when `deck <name>` is absent
let preset = doc.Presets.[0] // { Name = "report-author"; Topology = Some (MFD)(F); ... }
let role = doc.ZoneBindings.["spec-tree"] // "mfd"
let payload = DeckMapping.toDeckPayload doc // spine DeckPayload
Problem
- Attention layouts ("which zones exist, who is forward, what sits on the side displays") end up hardcoded per surface — the same layout decisions re-implemented in every renderer, impossible to review as a whole.
- Topology as a raw string travels through the pipeline until someone finally guesses what
(MFD)(F)means — typos surface far from the file that made them.
Solution
- Layout as a declarative document: presets and zone bindings in text, parsed once into typed records — reviewable in one place, renderable by any host.
- Topology wires parse into typed
PresentationTopologyat read time, so an invalid wire is a positioned diagnostic at the file, not a mystery string downstream. - Battle-tested as the F# mirror of the Platform deck authoring parser — typed topology per ADR-0058 · deck authoring per ADR-0055 · GDL per ADR-0059.
When not to use
- Rendering or layout math — this package produces the typed document and spine payload only; projecting presets onto grids/screens belongs to the presentation/execution layers.
- Cross-file consistency: preset
forward/mfdzone ids are not checked against thezonesblock (or against any real surface) — dangling zone ids parse cleanly. - Invalid topologies stay in the document: a bad topology wire adds a
TopologyWireInvaliddiagnostic but the preset remains (withTopology = None) rather than failing the parse.
Learn more
MIT · Source & issues · part of the Guiders federation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- AIGuiders.Platform.Modeling.Gdl.Authoring (>= 0.1.0)
- AIGuiders.Platform.Modeling.Gdl.Core (>= 0.1.0)
- AIGuiders.Platform.Modeling.Gdl.Presentation (>= 0.1.0)
- FSharp.Core (>= 10.1.401)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AIGuiders.Platform.Modeling.Gdl.Parse.Deck:
| Package | Downloads |
|---|---|
|
AIGuiders.Platform.Modeling.Language.Adapters.Gdl
GDL quarry backend for Language Resolver Center. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 94 | 10/24/2026 |