magic.lambda.hyperlambda 9.9.9

Install-Package magic.lambda.hyperlambda -Version 9.9.9
dotnet add package magic.lambda.hyperlambda --version 9.9.9
<PackageReference Include="magic.lambda.hyperlambda" Version="9.9.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add magic.lambda.hyperlambda --version 9.9.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: magic.lambda.hyperlambda, 9.9.9"
#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=9.9.9

// Install magic.lambda.hyperlambda as a Cake Tool
#tool nuget:?package=magic.lambda.hyperlambda&version=9.9.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Magic Lambda Hyperlambda

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, etc. 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:-/*

3 lines of code, allowing you to dynamically load and execute Hyperlambda, tied to your C# code dynamically, using ISlot implementations, and Super Signals. Not too bad for 3 lines of code.

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 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

License

This project is the copyright(c) 2020-2021 of Thomas Hansen thomas@servergardens.com, and is licensed under the terms of the LGPL version 3, as published by the Free Software Foundation. See the enclosed LICENSE file for details.

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
9.9.9 162 11/29/2021
9.9.3 221 11/9/2021
9.9.2 193 11/4/2021
9.9.0 301 10/30/2021
9.8.9 190 10/29/2021
9.8.7 199 10/27/2021
9.8.6 175 10/27/2021
9.8.5 135 10/26/2021
9.8.0 399 10/20/2021
9.7.9 221 10/19/2021
9.7.5 441 10/14/2021
9.7.0 325 10/9/2021
9.6.6 388 8/14/2021
9.2.0 2,092 5/26/2021
9.1.4 349 4/21/2021
9.1.0 322 4/14/2021
9.0.0 244 4/5/2021
8.9.9 272 3/30/2021
8.9.3 267 3/19/2021
8.9.2 238 1/29/2021
8.9.1 205 1/24/2021
8.9.0 230 1/22/2021
8.6.9 926 11/8/2020
8.6.6 511 11/2/2020
8.6.0 630 10/28/2020
8.5.0 361 10/23/2020
8.4.0 886 10/13/2020
8.3.1 524 10/5/2020
8.3.0 327 10/3/2020
8.2.2 466 9/26/2020
8.2.1 344 9/25/2020
8.2.0 366 9/25/2020
8.1.17 1,142 9/13/2020
8.1.16 289 9/13/2020
8.1.15 354 9/12/2020
8.1.11 499 9/11/2020
8.1.10 393 9/6/2020
8.1.9 326 9/3/2020
8.1.8 353 9/2/2020
8.1.7 247 8/28/2020
8.1.4 291 8/25/2020
8.1.3 250 8/18/2020
8.1.2 287 8/16/2020
8.1.1 338 8/15/2020
8.1.0 249 8/15/2020
8.0.1 534 8/7/2020
8.0.0 306 8/7/2020
7.0.1 425 6/28/2020
7.0.0 277 6/28/2020
5.0.0 1,376 2/25/2020
4.0.4 1,261 1/27/2020
4.0.3 333 1/27/2020
4.0.2 423 1/16/2020
4.0.1 433 1/11/2020
4.0.0 429 1/5/2020
3.1.0 1,400 11/10/2019
3.0.0 731 10/23/2019
2.0.1 1,465 10/15/2019
2.0.0 454 10/13/2019
1.1.9 345 10/11/2019
1.1.8 346 10/10/2019
1.1.7 236 10/9/2019
1.1.6 238 10/9/2019
1.1.5 270 10/6/2019
1.1.4 261 10/6/2019
1.1.2 255 10/5/2019
1.0.0 267 9/26/2019