![]() |
VOOZH | about |
dotnet add package magic.lambda.hyperlambda --version 17.2.0
NuGet\Install-Package magic.lambda.hyperlambda -Version 17.2.0
<PackageReference Include="magic.lambda.hyperlambda" Version="17.2.0" />
<PackageVersion Include="magic.lambda.hyperlambda" Version="17.2.0" />Directory.Packages.props
<PackageReference Include="magic.lambda.hyperlambda" />Project file
paket add magic.lambda.hyperlambda --version 17.2.0
#r "nuget: magic.lambda.hyperlambda, 17.2.0"
#:package magic.lambda.hyperlambda@17.2.0
#addin nuget:?package=magic.lambda.hyperlambda&version=17.2.0Install as a Cake Addin
#tool nuget:?package=magic.lambda.hyperlambda&version=17.2.0Install as a Cake Tool
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.
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.
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.
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:-/*
Magic is 100% Open Source and you can find the primary project GitHub page here.
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.
The projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by AINIRO.IO.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.2.0 | 1,858 | 1/22/2024 |
| 17.1.7 | 431 | 1/12/2024 |
| 17.1.6 | 404 | 1/11/2024 |
| 17.1.5 | 430 | 1/5/2024 |
| 17.0.1 | 486 | 1/1/2024 |
| 17.0.0 | 630 | 12/14/2023 |
| 16.11.5 | 511 | 11/12/2023 |
| 16.9.0 | 499 | 10/9/2023 |
| 16.7.0 | 818 | 7/11/2023 |
| 16.4.1 | 682 | 7/2/2023 |
| 16.4.0 | 669 | 6/22/2023 |
| 16.3.1 | 528 | 6/7/2023 |
| 16.3.0 | 591 | 5/28/2023 |
| 16.1.9 | 871 | 4/30/2023 |
| 15.10.11 | 709 | 4/13/2023 |
| 15.9.1 | 812 | 3/27/2023 |
| 15.9.0 | 698 | 3/24/2023 |
| 15.8.2 | 715 | 3/20/2023 |
| 15.7.0 | 601 | 3/6/2023 |
| 15.5.0 | 1,874 | 1/28/2023 |