magic.lambda.hyperlambda 14.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package magic.lambda.hyperlambda --version 14.0.2
                    
NuGet\Install-Package magic.lambda.hyperlambda -Version 14.0.2
                    
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.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="magic.lambda.hyperlambda" Version="14.0.2" />
                    
Directory.Packages.props
<PackageReference Include="magic.lambda.hyperlambda" />
                    
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 magic.lambda.hyperlambda --version 14.0.2
                    
#r "nuget: magic.lambda.hyperlambda, 14.0.2"
                    
#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 magic.lambda.hyperlambda@14.0.2
                    
#: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=magic.lambda.hyperlambda&version=14.0.2
                    
Install as a Cake Addin
#tool nuget:?package=magic.lambda.hyperlambda&version=14.0.2
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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
17.2.0 1,153 1/22/2024
17.1.7 240 1/12/2024
17.1.6 211 1/11/2024
17.1.5 232 1/5/2024
17.0.1 274 1/1/2024
17.0.0 423 12/14/2023
16.11.5 373 11/12/2023
16.9.0 378 10/9/2023
16.7.0 598 7/11/2023
16.4.1 499 7/2/2023
16.4.0 469 6/22/2023
16.3.1 403 6/7/2023
16.3.0 449 5/28/2023
16.1.9 701 4/30/2023
15.10.11 557 4/13/2023
15.9.1 663 3/27/2023
15.9.0 552 3/24/2023
15.8.2 559 3/20/2023
15.7.0 465 3/6/2023
15.5.0 1,666 1/28/2023
15.2.0 792 1/18/2023
15.1.0 1,253 12/28/2022
14.5.7 813 12/13/2022
14.5.5 914 12/6/2022
14.5.1 765 11/23/2022
14.5.0 679 11/18/2022
14.4.5 790 10/22/2022
14.4.1 832 10/22/2022
14.4.0 730 10/17/2022
14.3.1 1,308 9/12/2022
14.3.0 698 9/10/2022
14.1.3 961 8/7/2022
14.1.2 709 8/7/2022
14.1.1 750 8/7/2022
14.0.14 776 7/26/2022
14.0.12 696 7/24/2022
14.0.11 696 7/23/2022
14.0.10 688 7/23/2022
14.0.9 715 7/23/2022
14.0.8 828 7/17/2022
14.0.5 849 7/11/2022
14.0.4 823 7/6/2022
14.0.3 754 7/2/2022
14.0.2 730 7/2/2022
14.0.0 904 6/25/2022
13.4.0 2,130 5/31/2022
13.3.4 1,495 5/9/2022
13.3.0 1,039 5/1/2022
13.2.0 1,216 4/21/2022
13.1.0 1,094 4/7/2022
13.0.0 760 4/5/2022
11.0.5 1,496 3/2/2022
11.0.4 845 2/22/2022
11.0.3 836 2/9/2022
11.0.2 858 2/6/2022
11.0.1 848 2/5/2022
10.0.21 849 1/28/2022
10.0.20 856 1/27/2022
10.0.19 861 1/23/2022
10.0.18 843 1/17/2022
10.0.15 1,041 12/31/2021
10.0.14 688 12/28/2021
10.0.7 1,566 12/22/2021
10.0.5 850 12/18/2021
9.9.9 1,771 11/29/2021
9.9.3 1,011 11/9/2021
9.9.2 687 11/4/2021
9.9.0 822 10/30/2021
9.8.9 780 10/29/2021
9.8.7 743 10/27/2021
9.8.6 710 10/27/2021
9.8.5 720 10/26/2021
9.8.0 1,441 10/20/2021
9.7.9 748 10/19/2021
9.7.5 1,536 10/14/2021
9.7.0 931 10/9/2021
9.6.6 1,314 8/14/2021
9.2.0 6,333 5/26/2021
9.1.4 1,358 4/21/2021
9.1.0 1,131 4/14/2021
9.0.0 959 4/5/2021
8.9.9 1,124 3/30/2021
8.9.3 1,627 3/19/2021
8.9.2 1,134 1/29/2021
8.9.1 1,131 1/24/2021
8.9.0 1,172 1/22/2021
8.6.9 3,054 11/8/2020
8.6.6 2,124 11/2/2020
8.6.0 4,080 10/28/2020
8.5.0 1,985 10/23/2020
8.4.0 5,616 10/13/2020
8.3.1 2,727 10/5/2020
8.3.0 1,353 10/3/2020
8.2.2 2,108 9/26/2020
8.2.1 1,423 9/25/2020
8.2.0 1,471 9/25/2020
8.1.17 6,764 9/13/2020
8.1.16 681 9/13/2020
8.1.15 1,982 9/12/2020
8.1.11 2,602 9/11/2020
8.1.10 1,492 9/6/2020
8.1.9 1,378 9/3/2020
8.1.8 1,400 9/2/2020
8.1.7 1,319 8/28/2020
8.1.4 1,337 8/25/2020
8.1.3 1,336 8/18/2020
8.1.2 1,331 8/16/2020
8.1.1 1,389 8/15/2020
8.1.0 698 8/15/2020
8.0.1 2,792 8/7/2020
8.0.0 1,289 8/7/2020
7.0.1 1,447 6/28/2020
7.0.0 1,332 6/28/2020
5.0.0 7,508 2/25/2020
4.0.4 7,884 1/27/2020
4.0.3 1,395 1/27/2020
4.0.2 1,456 1/16/2020
4.0.1 1,442 1/11/2020
4.0.0 1,441 1/5/2020
3.1.0 6,452 11/10/2019
3.0.0 3,964 10/23/2019
2.0.1 8,314 10/15/2019
2.0.0 1,714 10/13/2019
1.1.9 1,453 10/11/2019
1.1.8 1,445 10/10/2019
1.1.7 654 10/9/2019
1.1.6 688 10/9/2019
1.1.5 719 10/6/2019
1.1.4 686 10/6/2019
1.1.2 686 10/5/2019
1.0.0 734 9/26/2019