magic.lambda.hyperlambda 14.5.5

.NET Standard 2.0
dotnet add package magic.lambda.hyperlambda --version 14.5.5
NuGet\Install-Package magic.lambda.hyperlambda -Version 14.5.5
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="magic.lambda.hyperlambda" Version="14.5.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add magic.lambda.hyperlambda --version 14.5.5
#r "nuget: magic.lambda.hyperlambda, 14.5.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install magic.lambda.hyperlambda as a Cake Addin
#addin nuget:?package=magic.lambda.hyperlambda&version=14.5.5

// Install magic.lambda.hyperlambda as a Cake Tool
#tool nuget:?package=magic.lambda.hyperlambda&version=14.5.5

Parsing Hyperlambda using Magic

This is the Hyperlambda parser and generator in Magic. More specifically, this project provides you with the following two slots.

  • [hyper2lambda] - Transforms a piece of Hyperlambda (text) to a lambda hierarchy
  • [lambda2hyper] - Transforms a lambda hierarchy to Hyperlambda (text)

Using these slots, you can both easily create, serialize, and parse Hyperlambda to lambda, and vice versa. Below is an example of parsing a piece of text as Hyperlambda, for then to dynamically execute it afterwards.

.hl:@"log.info:""This was logged from a piece of text"""

hyper2lambda:x:-

eval:x:-

You can also reverse the process, such as the following illustrates.

.hl
   log.info:This is some example logging invocation

lambda2hyper:x:-/*

The above two slots, allows you to dynamically generate plain text from a lambda structure, and vice versa, allowing you to for instance persist execution objects and structured data into files, your database, or for that matter transmit it over the network to another machine. Below is an example of dynamically loading a Hyperlambda file from disc, for then to execute it. Notice, in order to have the following snippet work, you'll need an actual file called "foo.hl" inside of your backend's "files/" folder.

io.file.load:/foo.hl

hyper2lambda:x:-

eval:x:-

Notice - Both of these slots can optionally be given a [comments] arguments with a value of true, at which point both [lambda2hyper] and [hyper2lambda] will preserve comments, and persist these as [..] nodes into your lambda, and reverse the process for the other direction. This allows you to keep the comments of your Hyperlambda parts as semantic nodes, as you handle your Hyperlambda and node hierarchy.

Project website

The source code for this repository can be found at github.com/polterguy/magic.lambda.hyperlambda, and you can provide feedback, provide bug reports, etc at the same place.

Quality gates

  • Build status
  • Quality Gate Status
  • Bugs
  • Code Smells
  • Coverage
  • Duplicated Lines (%)
  • Lines of Code
  • Maintainability Rating
  • Reliability Rating
  • Security Rating
  • Technical Debt
  • Vulnerabilities
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on magic.lambda.hyperlambda:

Package Downloads
magic.library

Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by default. To use package go to https://polterguy.github.io

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
14.5.5 150 12/6/2022
14.5.1 251 11/23/2022
14.5.0 174 11/18/2022
14.4.5 245 10/22/2022
14.4.1 202 10/22/2022
14.4.0 195 10/17/2022
14.3.1 541 9/12/2022
14.3.0 217 9/10/2022
14.1.3 488 8/7/2022
14.1.2 240 8/7/2022
14.1.1 239 8/7/2022
14.0.14 292 7/26/2022
14.0.12 265 7/24/2022
14.0.11 249 7/23/2022
14.0.10 240 7/23/2022
14.0.9 244 7/23/2022
14.0.8 346 7/17/2022
14.0.5 401 7/11/2022
14.0.4 367 7/6/2022
14.0.3 292 7/2/2022
14.0.2 263 7/2/2022
14.0.0 344 6/25/2022
13.4.0 1,067 5/31/2022
13.3.4 744 5/9/2022
13.3.0 470 5/1/2022
13.2.0 566 4/21/2022
13.1.0 509 4/7/2022
13.0.0 309 4/5/2022
11.0.5 752 3/2/2022
11.0.4 350 2/22/2022
11.0.3 361 2/9/2022
11.0.2 379 2/6/2022
11.0.1 346 2/5/2022
10.0.21 344 1/28/2022
10.0.20 362 1/27/2022
10.0.19 359 1/23/2022
10.0.18 322 1/17/2022
10.0.15 541 12/31/2021
10.0.14 334 12/28/2021
10.0.7 899 12/22/2021
10.0.5 451 12/18/2021
9.9.9 1,186 11/29/2021
9.9.3 527 11/9/2021
9.9.2 368 11/4/2021
9.9.0 490 10/30/2021
9.8.9 434 10/29/2021
9.8.7 381 10/27/2021
9.8.6 367 10/27/2021
9.8.5 380 10/26/2021
9.8.0 882 10/20/2021
9.7.9 399 10/19/2021
9.7.5 968 10/14/2021
9.7.0 532 10/9/2021
9.6.6 788 8/14/2021
9.2.0 4,482 5/26/2021
9.1.4 818 4/21/2021
9.1.0 642 4/14/2021
9.0.0 569 4/5/2021
8.9.9 705 3/30/2021
8.9.3 1,058 3/19/2021
8.9.2 684 1/29/2021
8.9.1 689 1/24/2021
8.9.0 761 1/22/2021
8.6.9 2,238 11/8/2020
8.6.6 1,438 11/2/2020
8.6.0 2,794 10/28/2020
8.5.0 1,317 10/23/2020
8.4.0 4,003 10/13/2020
8.3.1 1,908 10/5/2020
8.3.0 885 10/3/2020
8.2.2 1,424 9/26/2020
8.2.1 911 9/25/2020
8.2.0 948 9/25/2020
8.1.17 4,933 9/13/2020
8.1.16 429 9/13/2020
8.1.15 1,308 9/12/2020
8.1.11 1,777 9/11/2020
8.1.10 963 9/6/2020
8.1.9 890 9/3/2020
8.1.8 912 9/2/2020
8.1.7 788 8/28/2020
8.1.4 807 8/25/2020
8.1.3 813 8/18/2020
8.1.2 809 8/16/2020
8.1.1 868 8/15/2020
8.1.0 387 8/15/2020
8.0.1 1,886 8/7/2020
8.0.0 815 8/7/2020
7.0.1 931 6/28/2020
7.0.0 843 6/28/2020
5.0.0 5,371 2/25/2020
4.0.4 5,630 1/27/2020
4.0.3 882 1/27/2020
4.0.2 968 1/16/2020
4.0.1 940 1/11/2020
4.0.0 938 1/5/2020
3.1.0 4,721 11/10/2019
3.0.0 2,833 10/23/2019
2.0.1 6,178 10/15/2019
2.0.0 1,125 10/13/2019
1.1.9 918 10/11/2019
1.1.8 905 10/10/2019
1.1.7 383 10/9/2019
1.1.6 373 10/9/2019
1.1.5 411 10/6/2019
1.1.4 401 10/6/2019
1.1.2 393 10/5/2019
1.0.0 428 9/26/2019