Acorn.Loose 26.8.3860

dotnet add package Acorn.Loose --version 26.8.3860
                    
NuGet\Install-Package Acorn.Loose -Version 26.8.3860
                    
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="Acorn.Loose" Version="26.8.3860" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Acorn.Loose" Version="26.8.3860" />
                    
Directory.Packages.props
<PackageReference Include="Acorn.Loose" />
                    
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 Acorn.Loose --version 26.8.3860
                    
#r "nuget: Acorn.Loose, 26.8.3860"
                    
#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 Acorn.Loose@26.8.3860
                    
#: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=Acorn.Loose&version=26.8.3860
                    
Install as a Cake Addin
#tool nuget:?package=Acorn.Loose&version=26.8.3860
                    
Install as a Cake Tool

Acorn.Loose

A C# port of acorn-loose, the error-tolerant variant of the Acorn JavaScript parser. It tries to parse anything as JavaScript, repairing syntax errors as best it can, producing a mostly-valid ESTree tree instead of throwing. Targets .NET 10.

using Acorn;
using Acorn.Loose;

// Incomplete / broken input still yields a best-effort tree.
Node ast = AcornLoose.Parse("foo(bar,", new Options { EcmaVersion = 2020 });

The recommended pattern is to try Acorn.Parser.ParseStatic first, and fall back to AcornLoose.Parse only when it throws.

MIT licensed, like upstream Acorn.

Product 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

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
26.8.3860 72 8/11/2026
26.7.2846 99 7/22/2026