@plurnk/plurnk-grammar 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plurnk.md +1 -6
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -4,9 +4,7 @@ YOU MUST ONLY use the Extended HEREDOC Plurnk Operations (FIND|READ|EDIT|COPY|MO
|
|
|
4
4
|
|
|
5
5
|
## Syntax
|
|
6
6
|
|
|
7
|
-
```
|
|
8
7
|
<<OPsuffix[signal]?(target)?<L>?:body?:OPsuffix
|
|
9
|
-
```
|
|
10
8
|
|
|
11
9
|
Slots between `<<OPsuffix` and `:body:` are all optional. `:body:` fences are required (use `::` when body is empty).
|
|
12
10
|
|
|
@@ -24,6 +22,7 @@ Slots between `<<OPsuffix` and `:body:` are all optional. `:body:` fences are re
|
|
|
24
22
|
| SEND | status code | recipient | — | message body |
|
|
25
23
|
| EXEC | executor | cwd | — | command or code |
|
|
26
24
|
|
|
25
|
+
Operations emit their status and/or results on the subsequent turn.
|
|
27
26
|
READ output prefixes every line with line numbers, `N:\t`. The prefix is not part of the source.
|
|
28
27
|
SEND broadcasts to uri when a path is included and messages the user when no path is included.
|
|
29
28
|
EXEC defaults to `sh`; override with an optional executor (`node`, `python`, `search`, etc.).
|
|
@@ -84,11 +83,9 @@ YOU MAY permanently delete entries by MOVE to `/dev/null` (works regardless of e
|
|
|
84
83
|
|
|
85
84
|
YOU MAY use an optional matching suffix on the opening and closing tags for disambiguation.
|
|
86
85
|
|
|
87
|
-
```
|
|
88
86
|
<<EDITouter(known://demo):
|
|
89
87
|
quoted: <<EDIT(known://inner):hello:EDIT
|
|
90
88
|
:EDITouter
|
|
91
|
-
```
|
|
92
89
|
|
|
93
90
|
## Body
|
|
94
91
|
|
|
@@ -96,7 +93,6 @@ Body content is character-perfect, exactly matching whitespace.
|
|
|
96
93
|
|
|
97
94
|
## Examples
|
|
98
95
|
|
|
99
|
-
```
|
|
100
96
|
<<FIND(config/**/*.xml)://user[@role='admin']:FIND
|
|
101
97
|
<<READ(lang/??.json):$.greeting:READ
|
|
102
98
|
<<READ(README.md):$.Installation:READ
|
|
@@ -136,4 +132,3 @@ chmod +x ./example.sh
|
|
|
136
132
|
<<SEND[102]:decomposed prompt into unknowns; plan initialized:SEND
|
|
137
133
|
<<SEND[200]:Paris:SEND
|
|
138
134
|
<<SEND[200]:{"city":"Paris","population":2161000}:SEND
|
|
139
|
-
```
|