MVScript 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MVScript --version 1.0.0                
NuGet\Install-Package MVScript -Version 1.0.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="MVScript" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MVScript --version 1.0.0                
#r "nuget: MVScript, 1.0.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 MVScript as a Cake Addin
#addin nuget:?package=MVScript&version=1.0.0

// Install MVScript as a Cake Tool
#tool nuget:?package=MVScript&version=1.0.0                

MVScript

is a library designed for creating, managing, and interacting with structured information in readable and maintainable script formats. This library utilizes a hierarchical structure to represent information, consisting of roads, blocks, and key-value pairs.

Features

  1. Text Reading and Parsing: Capability to read a text and parse it to create roads, blocks, and relevant information.
  2. Accessing Information Using Indexers: Access roads and blocks using indexers.
  3. Structured Data Storage: Information is stored in a structured tree-like format using the Road, Block, and Value classes.
  4. String Conversion: Ability to convert information to a string while maintaining the original structure.

Key Components

  1. Road: Represents a path in the structured information. Each road contains blocks and additional information.
  2. Block: Exists within a road and holds key-value pairs. Each block may contain nested blocks and simple information.
  3. Key-Value Pair: Each block contains pairs of information represented in key-value format.

Example Script

BEGIN ROAD road1
        BEGIN BLOCK block1
                name: Soheil MV
                date: 2023
                isDev: true
        END BLOCK
        BEGIN BLOCK block2
                myList: [Soheil MV, 2023, true]
        END BLOCK
        BEGIN BLOCK block3
                myDictionary: {name:Soheil MV; date:2023; isDev:true}
        END BLOCK
END ROAD
BEGIN ROAD road2
        BEGIN BLOCK block1
                myList: [{name:Soheil MV; date:2023; IsDev:true}, 200, true]
        END BLOCK
END ROAD
BEGIN ROAD road3
        BEGIN BLOCK block1
                myDictionary: {myList:[Soheil MV, 2023, true]; StatusCode:200; IsOk:true}
        END BLOCK
END ROAD
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.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.