PSLambda
PSLambda copied to clipboard
A runtime compiler for PowerShell ScriptBlock objects.
hi, this is a very good project. I'm a c# developer and I want to use powershell as a scripting language in my project. Powershell script has several big advantages:...
This would increase viability as a replacement for `Add-Type`. I'm comfortable enough with `MetadataBuilder` and `MSIL` in general that this should be doable, though it will also be quite time...
There's no publlic API for getting the expression itself instead of a compiled delegate. Ideally this would be added: 1. To the type converter for `psdelegate` 1. As a switch...
Currently comparison operators like `-eq` and `-gt` use methods from `LanguagePrimitives` to emulate PowerShell's comparison behavior and will also pull local variables from the scope the delegate is created in....
There's no way to reference the exception that caused a catch block at the moment. The exception should be assigned to `$_`/`$PSItem` if it's referenced in the catch block. Also,...
I need better detection interfaces in method resolution. As a workaround you can cast it as an `IEnumerable`. ```powershell using namespace System.Collections.Generic using namespace System.IO using namespace System.Reflection.PortableExecutable using namespace...
Example code: ```powershell [psdelegate]{ foreach ($a in 0..10) { foreach ($b in 'one', 'two') { $Host.UI.WriteLine($a.ToString() + $b.ToString()) } } } | % invoke ``` Throws ``` % : Exception...
It'd like member expressions with the member `psobject` to always resolve to essentially `[psobject]::AsPSObject`. So `$ExecutionContext.psobject` would be replaced behind the scenes with `[PSObject]::AsPSObject($ExecutionContext)`
`out` parameters don't require any special syntax atm and I'm not sure if I like that. I'd like to look into requiring syntax similar to `[ref]$var` or `[ref][type]$var` for inline...
Right now if you try to import the module without net471 or PowerShell core it will throw file not found exceptions. This is because I'm using the net PowerShellStandard library,...