3 min readModule: raggiesoft.finsharpF1: IDH_FIN_STDLIB_CLI (0x3005)
finsc CLI, Standard Library & .NET Compiler Architecture
Fin# (FinSharp.Compiler / finsc) is architected as a clean, fast, 100%-readable self-hosted C# compiler frontend ("Mini-Roslyn" design) targeting .NET 10 / 11 CoreCLR and NativeAOT—interoperating seamlessly with every .NET NuGet library while keeping build times under 3 seconds.
finsc Command-Line Interface Reference
Command
Flags & Arguments
Purpose
finsc check <file|dir>
--diagnostics=json, --strict
Runs Lexer -> Parser -> Binder -> LinearFlowAnalyzer (FIN0001–FIN0005) in milliseconds without writing binaries.
finsc build <project.finproj>
-o <dir>, --aot, --pdb
Verifies all conservation proofs and lowers verified syntax trees via Microsoft.CodeAnalysis.CSharp (Roslyn) into deterministic .dll / .exe assemblies.
finsc audit <ledger.fin>
--standard=Z_SOX_302, --json
Executes ledger transactions deterministically and emits a SHA-256 Merkle trial-balance attestation report.
finsc fmt <file|dir>
--write, --check
Comment-preserving source formatter that aligns account, debit, and credit columns cleanly.
finsc lsp
--stdio
Launches the JSON-RPC 2.0 Language Server providing real-time red squiggles for FIN0001–FIN0005 and live T-account hover cards.
Standard Library Reference (FinSharp.StdLib)
capital.* — Linear Allocation & Remainder Combinators
Compiler Pipeline Architecture ("Mini-Roslyn" on .NET)
Why build FinSharp.Compiler as a standalone immutable C# syntax tree lowering to Roslyn rather than forking all 4+ million lines of dotnet/roslyn?
Sub-3-Second Cold Builds: Developers and contributors can clone, read, and compile the entire Fin# toolchain in seconds without a 30 GB compiler build environment.
100-Level Read-Along Clarity: Every pass—FinLexer -> FinParser -> FinBinder -> LinearFlowAnalyzer -> CSharpRoslynEmitter—fits cleanly in well-commented C# files.
Full .NET & Studio Ecosystem Integration: Emits standard signed .NET IL + PDBs and powers a candidate RaggieSoft Fin# / Ledger Studio workstation (WebView2 + Monaco + Live T-Account Visualizer, honoring Community == 100% Architect Feature Parity!).