Skip to content

Commit e16601a

Browse files
author
James Brundage
committed
Adding Lists of Transpilers / Supported Languages to Root and Linking in README
1 parent ecf1138 commit e16601a

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

ListOfTranspilers.ps1.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
These are all of the transpilers currently included in PipeScript:
2+
3+
4+
~~~PipeScript{
5+
[PSCustomObject]@{
6+
Table = Get-Transpiler |
7+
Sort-Object Name |
8+
Select-Object @{
9+
Name = 'Name'
10+
Expression = {
11+
"[$($_.DisplayName)]($($_.Source -replace '^.+(?=Transpilers)'))"
12+
}
13+
},
14+
Synopsis
15+
}
16+
}
17+
~~~

README.ps1.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ PipeScript allows you to build PowerShell scripts, and provides you with an engi
4040

4141
This allows us to fine-tune the way we build PowerShell and lets us extend the language to make complex scenarios simple.
4242

43+
See the [List of Transpilers](ListOfTranspilers.md) you can use to transform your scripts.
44+
4345
## Making Programming more Scriptable
4446

4547
Programming is tedious, not hard.
@@ -50,7 +52,9 @@ For example, if implementing an interface or subclass, the only things that will
5052

5153
PipeScript can be be embedded within ```.>{@(Get-Transpiler | Where-Object { $_.Parameters.Values | ? { $_.ParameterType -eq [Management.Automation.CommandInfo] }}).Count}<.``` languages.
5254

53-
Embedding PipeScript within any of these languages allows you to generate any of these languages with parameterized scripts.
55+
Embedding PipeScript within any of these languages allows you to generate any of these languages with parameterized scripts, thus removing some of the tedium of programming.
56+
57+
See the [Supported Languages](SupportedLanguages.md) you can use to transform your scripts.
5458

5559
## What's a Transpiler?
5660

SupportedLanguages.ps1.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
These are all of the transpilers currently included in PipeScript:
2+
3+
4+
~~~PipeScript{
5+
[PSCustomObject]@{
6+
Table = Get-Transpiler |
7+
Where-Object {
8+
$_.Parameters.Values |
9+
Where-Object { $_.ParameterType -eq [Management.Automation.CommandInfo] }
10+
} |
11+
Sort-Object Name |
12+
Select-Object @{
13+
Name='Language'
14+
Expression= {
15+
"[$($_.DisplayName -replace '^Inline\.')]($($_.Name))"
16+
}
17+
}, @{
18+
Name='Synopsis'
19+
Expression= { $_.Synopsis -replace '[\s\r\n]+$' }
20+
}, @{
21+
Name='Pattern'
22+
Expression = { '```' + "$($_.ScriptBlock.Attributes.RegexPattern -replace '\|','\|')" + '```'}
23+
}
24+
}
25+
}
26+
~~~

0 commit comments

Comments
 (0)