Skip to content

Pipe script keywords nlg and templates #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 122 commits into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
185390c
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
a13acbb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
473742b
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
5e8bfaa
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
b0912a7
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
4ea67f7
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
0a0ce03
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
9556918
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
6a5a60b
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
6f2ee3d
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
8e6f5cc
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
f844656
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
b0e2fde
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
c48ecaf
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
a0685ed
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
ba97a40
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
d7720e0
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
ca0bc1f
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
fdef571
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e47e683
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
656e5ae
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
1a9e798
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
fd31068
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
6e2fa62
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
42e67a3
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
ea066bd
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
9dfc9b4
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
5d14115
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
40fbaca
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
3cac287
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
2479b16
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
603c5f7
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
be296bb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
d289d94
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
c9c4b9a
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
8978dcc
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
dc47d56
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
6a9986a
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
34229e8
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
7744b46
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
9dc22ea
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
77fc37b
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
54fc2d7
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
b6924dd
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
a7e8faf
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
83e8168
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
ed01e89
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
2506e8c
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
8f18608
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
f363f2d
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
dd0a68b
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
a02799c
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
82af673
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
030bc53
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
8ede042
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
51941e5
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
81373c0
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
245413e
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e86eebb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
afbd823
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e2b9c96
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
897bae6
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
54af93f
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
6e04dbb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
a6b579f
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e5c11bc
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
af890df
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
8701ad4
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
7068767
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
47d70d9
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e07afbd
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
9bd0aeb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
28f50b3
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
e6008cb
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
7fda697
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
d838538
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
16e4bc9
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
2807566
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
40a4743
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
373938c
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
246b978
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
012b6a6
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
19ba8f5
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
037c26a
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
7a8e988
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
435c8c0
[CommandAST].AsSentence() - Natural Language Parsing (Fixes #242)
Oct 6, 2022
96ae17c
[CommandAST].AsSentence() - Improving argumentation (re #242)
Oct 7, 2022
6245871
[CommandAST].AsSentence() - Improving argumentation (re #242)
Oct 7, 2022
1bdd28a
[CommandAST].AsSentence() - Improving argumentation (re #242)
Oct 7, 2022
412e6b5
[CommandAST].AsSentence() - Improving argumentation (re #242)
Oct 7, 2022
de6f5fd
Adding \Types\PipeScript.Sentence (Fixes #243)
Oct 7, 2022
9963d5e
Adding \Types\PipeScript.Sentence (Fixes #243)
Oct 7, 2022
4831b41
Adding \Types\PipeScript.Sentence (Fixes #243)
Oct 7, 2022
07fdf4f
Adding \Types\PipeScript.Sentence (Fixes #243)
Oct 7, 2022
fcce1c4
[CommandAst].AsSentance - continuing when [switch] statements are enc…
Oct 7, 2022
e1706ad
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
17ae7ef
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
ab57726
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
b150db6
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
6467a9b
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
ad30fdb
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
35f9030
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
c8079bc
Adding 'all' keyword (Fixes #244)
Oct 8, 2022
7037943
Adding Inline WebAsssembly Transpiler ( Fixes #239)
Oct 8, 2022
a6a748b
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
7e8392d
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
80116c6
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
a8d6a7f
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
95ddbcd
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
0fc753c
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
7849879
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
5b8c301
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
90d629e
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
50a781d
Adding Inline HCL Transpiler (Fixes #240 Fixes #241)
Oct 8, 2022
47cf7aa
Adding formatter for sentences (re #242)
Oct 8, 2022
e3054f6
Adding formatter for sentences (re #242)
Oct 8, 2022
bd2b7f5
Adding formatter for sentences (re #242)
Oct 8, 2022
e930133
Adding formatter for sentences (re #242)
Oct 8, 2022
7bdbad1
Updating Module Version [0.1.6] and CHANGELOG
Oct 8, 2022
5fc9280
Updating Module Version [0.1.6] and CHANGELOG
Oct 8, 2022
1337710
Updating Module Version [0.1.6] and CHANGELOG
Oct 8, 2022
1c860b8
Updating Module Version [0.1.6] and CHANGELOG
Oct 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.1.6:
* Added 'all' keyword (iterate over everything) (Fixes #244).
* Added Natural Language Processing to CommandAST (Fixes #242)
* New Language Support:
* HashiCorp Language (HCL) (Fixes #240 / #241)
* WebAssembly (WAT) (Fixes #239)
---

## 0.1.5:
* Support for [inherit]ing a command (Fixes #235) (finally/wow)
* Join-PipeScript: Overhauling (Fixes #231 Fixes #232 Fixes #233 Fixes #236)
Expand Down
24 changes: 24 additions & 0 deletions Formatting/PipeScript.Sentence.format.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Write-FormatView -TypeName PipeScript.Sentence -Action {

Write-FormatViewExpression -ForegroundColor Verbose -Property Keyword -If { $_.Command }
Write-FormatViewExpression -ForegroundColor Success -ScriptBlock { " <# $($_.Command) #> " } -If { $_.Command }

Write-FormatViewExpression -ScriptBlock { ' ' }
Write-FormatViewExpression -ScriptBlock {
@(foreach ($clause in $_.Clauses) {
$wordNumber = -1
foreach ($word in $clause.Words) {
$wordNumber++
if (-not $wordNumber) {
Format-RichText -ForegroundColor Warning -InputObject "$word"
} else {
Format-RichText -InputObject "$word"
}
}
}) -join ' '
}

Write-FormatViewExpression -ForegroundColor Magenta -If { $_.Arguments -and -not $_.Clauses } -ScriptBlock {
$_.Arguments -join ' '
}
}
2 changes: 2 additions & 0 deletions ListOfTranspilers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ These are all of the transpilers currently included in PipeScript:
|Name |Synopsis |
|-------------------------------------------------------------------------------------------------|-------------------------------------------------|
|[Aliases](Transpilers/Parameters/Aliases.psx.ps1) |Dynamically Defines Aliases |
|[All](Transpilers/Keywords/All.psx.ps1) |all keyword |
|[Assert](Transpilers/Keywords/Assert.psx.ps1) |Assert keyword |
|[Await](Transpilers/Keywords/Await.psx.ps1) |awaits asynchronous operations |
|[Bash](Transpilers/Wrappers/Bash.psx.ps1) |Wraps PowerShell in a Bash Script |
Expand All @@ -29,6 +30,7 @@ These are all of the transpilers currently included in PipeScript:
|[Inline.CSharp](Transpilers/Inline/Inline.CSharp.psx.ps1) |C# Inline PipeScript Transpiler. |
|[Inline.CSS](Transpilers/Inline/Inline.CSS.psx.ps1) |CSS Inline PipeScript Transpiler. |
|[Inline.Go](Transpilers/Inline/Inline.Go.psx.ps1) |Go PipeScript Transpiler. |
|[Inline.HCL](Transpilers/Inline/Inline.HCL.psx.ps1) |HCL PipeScript Transpiler. |
|[Inline.HLSL](Transpilers/Inline/Inline.HLSL.psx.ps1) |HLSL Inline PipeScript Transpiler. |
|[Inline.HTML](Transpilers/Inline/Inline.HTML.psx.ps1) |HTML PipeScript Transpiler. |
|[Inline.Java](Transpilers/Inline/Inline.Java.psx.ps1) |Java Inline PipeScript Transpiler. |
Expand Down
Loading