September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1,3 @@
a = .array~of(1, 2, 3)
ins = "loop num over a; say num; end"
interpret ins

View file

@ -0,0 +1,2 @@
$test2plus2 = '2 + 2 -eq 4'
Invoke-Expression $test2plus2

View file

@ -0,0 +1,2 @@
$say = {"Hello, world!"}
& $say

View file

@ -0,0 +1,2 @@
$say = {param ([string]$Subject) "Hello, $Subject!"}
& $say -Subject "my friend"

View file

@ -0,0 +1,2 @@
$say = {param ([string]$Exclamation, [string]$Subject) "$Exclamation, $Subject!"}
& $say -Exclamation "Goodbye" -Subject "cruel world"

View file

@ -0,0 +1,6 @@
$title = "Dong Work For Yuda"
$scriptblock = {$title}
$closedScriptblock = $scriptblock.GetNewClosure()
& $scriptblock
& $closedScriptblock

View file

@ -0,0 +1,3 @@
$title = "I'm Too Sexy"
& $scriptblock
& $closedScriptblock

View file

@ -0,0 +1,3 @@
Compiler.Compiler.compileText(
"fcn f(text){text.len()}").f("foobar")
//-->6