magic.lambda.hyperlambda 16.3.1

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

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

magic.lambda.hyperlambda - Parsing and creating Hyperlambda

This is the Hyperlambda parser and generator in Magic, and allows you to parse Hyperlambda, in addition to generate Hyperlambda. More specifically, this project provides you with the following 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.

How to use [hyper2lambda]

This slot creates a semantic lambda object (graph object) from the specified text. Below is an example of usage.

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

The above of course produces an executable lambda object from your specified Hyperlambda text.

How to use [lambda2hyper]

This slot creates a Hyperlambda string from your specified lambda object. This allows you to transfer your Hyperlambda to some other server, and/or persist it to disc. Below is example usage.

.hl
   log.info:This is some example logging invocation
lambda2hyper:x:-/*

Project website for magic.lambda.hyperlambda

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.

  • Build status
  • Quality Gate Status
  • Bugs
  • Code Smells
  • Coverage
  • Duplicated Lines (%)
  • Lines of Code
  • Maintainability Rating
  • Reliability Rating
  • Security Rating
  • Technical Debt
  • Vulnerabilities

The projects is copyright of Aista, Ltd 2021 - 2023, and professionally maintained by AINIRO your friendly ChatGPT website chatbot vendor.

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. 
.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)
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
16.3.1 64 6/7/2023
16.3.0 113 5/28/2023
16.1.9 395 4/30/2023
15.10.11 281 4/13/2023
15.9.1 381 3/27/2023
15.9.0 304 3/24/2023
15.8.2 321 3/20/2023
15.7.0 217 3/6/2023
15.5.0 1,184 1/28/2023
15.2.0 527 1/18/2023
15.1.0 991 12/28/2022
14.5.7 537 12/13/2022
14.5.5 635 12/6/2022
14.5.1 522 11/23/2022
14.5.0 465 11/18/2022
14.4.5 554 10/22/2022
14.4.1 568 10/22/2022
14.4.0 492 10/17/2022
14.3.1 1,013 9/12/2022
14.3.0 474 9/10/2022
14.1.3 746 8/7/2022
14.1.2 501 8/7/2022
14.1.1 503 8/7/2022
14.0.14 537 7/26/2022
14.0.12 494 7/24/2022
14.0.11 483 7/23/2022
14.0.10 477 7/23/2022
14.0.9 484 7/23/2022
14.0.8 600 7/17/2022
14.0.5 641 7/11/2022
14.0.4 606 7/6/2022
14.0.3 536 7/2/2022
14.0.2 516 7/2/2022
14.0.0 666 6/25/2022
13.4.0 1,690 5/31/2022
13.3.4 1,177 5/9/2022
13.3.0 797 5/1/2022
13.2.0 966 4/21/2022
13.1.0 832 4/7/2022
13.0.0 547 4/5/2022
11.0.5 1,148 3/2/2022
11.0.4 583 2/22/2022
11.0.3 598 2/9/2022
11.0.2 632 2/6/2022
11.0.1 602 2/5/2022
10.0.21 587 1/28/2022
10.0.20 614 1/27/2022
10.0.19 625 1/23/2022
10.0.18 584 1/17/2022
10.0.15 736 12/31/2021
10.0.14 415 12/28/2021
10.0.7 1,154 12/22/2021
10.0.5 577 12/18/2021
9.9.9 1,384 11/29/2021
9.9.3 695 11/9/2021
9.9.2 464 11/4/2021
9.9.0 588 10/30/2021
9.8.9 530 10/29/2021
9.8.7 479 10/27/2021
9.8.6 465 10/27/2021
9.8.5 491 10/26/2021
9.8.0 1,070 10/20/2021
9.7.9 496 10/19/2021
9.7.5 1,203 10/14/2021
9.7.0 652 10/9/2021
9.6.6 957 8/14/2021
9.2.0 5,339 5/26/2021
9.1.4 1,002 4/21/2021
9.1.0 823 4/14/2021
9.0.0 674 4/5/2021
8.9.9 875 3/30/2021
8.9.3 1,330 3/19/2021
8.9.2 848 1/29/2021
8.9.1 843 1/24/2021
8.9.0 917 1/22/2021
8.6.9 2,663 11/8/2020
8.6.6 1,765 11/2/2020
8.6.0 3,537 10/28/2020
8.5.0 1,611 10/23/2020
8.4.0 4,949 10/13/2020
8.3.1 2,327 10/5/2020
8.3.0 1,070 10/3/2020
8.2.2 1,733 9/26/2020
8.2.1 1,115 9/25/2020
8.2.0 1,147 9/25/2020
8.1.17 6,078 9/13/2020
8.1.16 481 9/13/2020
8.1.15 1,639 9/12/2020
8.1.11 2,208 9/11/2020
8.1.10 1,172 9/6/2020
8.1.9 1,092 9/3/2020
8.1.8 1,107 9/2/2020
8.1.7 986 8/28/2020
8.1.4 1,003 8/25/2020
8.1.3 1,001 8/18/2020
8.1.2 1,010 8/16/2020
8.1.1 1,073 8/15/2020
8.1.0 444 8/15/2020
8.0.1 2,337 8/7/2020
8.0.0 1,008 8/7/2020
7.0.1 1,137 6/28/2020
7.0.0 1,039 6/28/2020
5.0.0 6,667 2/25/2020
4.0.4 7,039 1/27/2020
4.0.3 1,061 1/27/2020
4.0.2 1,144 1/16/2020
4.0.1 1,140 1/11/2020
4.0.0 1,135 1/5/2020
3.1.0 5,747 11/10/2019
3.0.0 3,437 10/23/2019
2.0.1 7,324 10/15/2019
2.0.0 1,353 10/13/2019
1.1.9 1,119 10/11/2019
1.1.8 1,106 10/10/2019
1.1.7 440 10/9/2019
1.1.6 429 10/9/2019
1.1.5 468 10/6/2019
1.1.4 460 10/6/2019
1.1.2 442 10/5/2019
1.0.0 488 9/26/2019