@plurnk/plurnk-grammar 0.74.22 → 0.74.28
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/dist/src/AstBuilder.d.ts +2 -2
- package/dist/src/AstBuilder.d.ts.map +1 -1
- package/dist/src/AstBuilder.js +7 -3
- package/dist/src/AstBuilder.js.map +1 -1
- package/dist/src/PlurnkParser.d.ts +1 -0
- package/dist/src/PlurnkParser.d.ts.map +1 -1
- package/dist/src/PlurnkParser.js +62 -35
- package/dist/src/PlurnkParser.js.map +1 -1
- package/dist/src/generated/plurnkLexer.d.ts +31 -18
- package/dist/src/generated/plurnkLexer.d.ts.map +1 -1
- package/dist/src/generated/plurnkLexer.js +360 -227
- package/dist/src/generated/plurnkLexer.js.map +1 -1
- package/dist/src/generated/plurnkParser.d.ts +104 -54
- package/dist/src/generated/plurnkParser.d.ts.map +1 -1
- package/dist/src/generated/plurnkParser.js +890 -428
- package/dist/src/generated/plurnkParser.js.map +1 -1
- package/dist/src/generated/plurnkParserVisitor.d.ts +28 -0
- package/dist/src/generated/plurnkParserVisitor.d.ts.map +1 -1
- package/dist/src/generated/plurnkParserVisitor.js +24 -0
- package/dist/src/generated/plurnkParserVisitor.js.map +1 -1
- package/package.json +1 -1
- package/plurnk.md +7 -4
package/plurnk.md
CHANGED
|
@@ -10,6 +10,8 @@ YOU MUST ONLY use the Extended HEREDOC Plurnk Operations (PLAN|FIND|READ|EDIT|CO
|
|
|
10
10
|
|
|
11
11
|
<<OPsuffix[signal]?(target)?<Line/Result>?:body?:OPsuffix
|
|
12
12
|
|
|
13
|
+
Empty (no body) operations contain two colons: <<READ(README.md)::READ
|
|
14
|
+
|
|
13
15
|
### Operations
|
|
14
16
|
|
|
15
17
|
The `(target)` is required for every operation except PLAN, EXEC, and SEND. Other fields are optional unless specified otherwise.
|
|
@@ -108,6 +110,9 @@ YOU MUST terminate the turn by SENDing a message to the user with the proper sta
|
|
|
108
110
|
|
|
109
111
|
YOU MUST SEND[102] to receive the results of operations you submitted.
|
|
110
112
|
|
|
113
|
+
To spawn a separate run: <<EDIT(run://capital-checker):Find the capital of France.:EDIT
|
|
114
|
+
To fork the current run: <<COPY(run://self):Re-derive the capital from a primary source.:COPY
|
|
115
|
+
|
|
111
116
|
## Examples
|
|
112
117
|
|
|
113
118
|
* <<FIND(config/**/*.xml)://user[@role='admin']:FIND
|
|
@@ -121,8 +126,8 @@ YOU MUST SEND[102] to receive the results of operations you submitted.
|
|
|
121
126
|
* <<READ(https://en.wikipedia.org/wiki/Paris)<426,465>::READ
|
|
122
127
|
* <<EDIT[philosophy,existentialism](known:///philosophy/existentialism/meaning.md):The meaning of life is 42:EDIT
|
|
123
128
|
* <<EDIT[france,geography](unknown:///countries/france/capital.md):What is the capital of France?:EDIT
|
|
124
|
-
* <<EDIT[plan,france,task](
|
|
125
|
-
* <<EDIT(
|
|
129
|
+
* <<EDIT[plan,france,task](run://self/plan.md):- [ ] Decompose prompt into unknowns:EDIT
|
|
130
|
+
* <<EDIT(run://self/plan.md)<2>:- [x] Discover capital of France:EDIT
|
|
126
131
|
* <<EDIT(known:///countries/france/capital.md)<-1>:[Wikipedia: Paris](https://en.wikipedia.org/wiki/Paris):EDIT
|
|
127
132
|
* <<EDIT(known:///countries/france/capital.md)<1,-1>::EDIT
|
|
128
133
|
* <<EDIT(known:///users.json)<0>:{"name":"Eve"}:EDIT
|
|
@@ -132,8 +137,6 @@ YOU MUST SEND[102] to receive the results of operations you submitted.
|
|
|
132
137
|
* <<KILL(obsolete/file.md)::KILL
|
|
133
138
|
* <<KILL(sh:///3/1/2)::KILL
|
|
134
139
|
* <<KILL[9](sh:///3/1/3)::KILL
|
|
135
|
-
* <<EDIT(run://capital-checker):Find the capital of France.:EDIT
|
|
136
|
-
* <<COPY(run://.):Re-derive the capital from a primary source.:COPY
|
|
137
140
|
* <<OPEN(log:///**/get)<1,10>::OPEN
|
|
138
141
|
* <<FIND(known:///**)<5>:~french revolutionary history:FIND
|
|
139
142
|
* <<FIND(known:///**)<0.7>:~french territorial concessions:FIND
|