Skip to content

Commit 9fc0703

Browse files
StartAutomatingStartAutomating
authored andcommitted
Adding 'new' keyword (#128)
1 parent 059c06c commit 9fc0703

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Transpilers/Keywords/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
This directory and it's subdirectories contain additional language keywords within PipeScript.
2+
3+
Most keywords will be implemented as a Transpiler that tranforms a CommandAST.
4+
5+
6+
|DisplayName |Synopsis |
7+
|------------------|----------------------------|
8+
|[New](New.psx.ps1)|['new' keyword](New.psx.ps1)|
9+
10+
11+
12+
13+
## New Example 1
14+
15+
16+
~~~PowerShell
17+
.> { new DateTime }
18+
~~~
19+
20+
## New Example 2
21+
22+
23+
~~~PowerShell
24+
.> { new byte 1 }
25+
~~~
26+
27+
## New Example 3
28+
29+
30+
~~~PowerShell
31+
.> { new int[] 5 }
32+
~~~
33+
34+
## New Example 4
35+
36+
37+
~~~PowerShell
38+
.> { new datetime 12/31/1999 }
39+
~~~
40+
41+
## New Example 5
42+
43+
44+
~~~PowerShell
45+
.> { new @{RandomNumber = Get-Random; A ='b'}}
46+
~~~
47+
48+
## New Example 6
49+
50+
51+
~~~PowerShell
52+
.> { new Diagnostics.ProcessStartInfo @{FileName='f'} }
53+
~~~
54+

0 commit comments

Comments
 (0)