YASF 2.1.0

dotnet add package YASF --version 2.1.0
NuGet\Install-Package YASF -Version 2.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="YASF" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YASF --version 2.1.0
#r "nuget: YASF, 2.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.
// Install YASF as a Cake Addin
#addin nuget:?package=YASF&version=2.1.0

// Install YASF as a Cake Tool
#tool nuget:?package=YASF&version=2.1.0

YASF

Note that this package is no more than a parser.

YASF is yet another storage format among the likes of JSON and CSV. This one, however, brings a simpler format at the cost of nesting capabilities (which are present, just not as good as JSON's).

Features

  • String, Numeric, Boolean, and Tree values (arrays are coming soon)
  • Serialization to and from types
  • Custom serialization names

Feature Roadmap

  • ☐ Arrays
  • ☐ Adquate dictionary support
  • ☐ Dynamic values/methods
  • ☐ Conversion to and from JSON and YAML

Quick Start

To install you can:

  • Download the DLL from your chosen release version (github)
  • Download and extract the source code into your codebase (again, github)

There are 2 maintained ways of parsing a YASF document. <br/> The most direct and simplest way is using one of SettingsDocument's creation methods: SettingsDocument.FromText(System.String), SettingsDocument.FromStream(System.IO.Stream), SettingsDocument.FromParser(SettingsConfig.Parser.SettingsParser).

Otherwise, you can directly use the parser (SettingsParser) to enumerate raw nodes.

var parser = new YASF.Parser.SettingsParser(MyText);
// System.String and System.IO.Stream are both accepted for initialization

foreach (SettingsConfig.Parser.Nodes.SettingsNode node in parser.ParseSyntaxTree())
{
    Console.WriteLine($"Parsed Node: {node.ToFormattedString()}");
}

And if you want a document anyway, use SettingsParser.ParseDocument().

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
2.1.0 423 4/7/2022
2.0.0 383 3/30/2022

dd support for byte, short, ushort, uint, long, ulong, enum in SettingsSerializer, SettingsDeserializer