@plurnk/plurnk-grammar 0.12.0 → 0.13.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 +4 -0
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -37,6 +37,8 @@ Sentinels: `<0>` before position 1 (prepend), `<-1>` after the last position (ap
|
|
|
37
37
|
|
|
38
38
|
Clearing content: `<1,-1>` selects every position; combine with an empty body to clear an entry.
|
|
39
39
|
|
|
40
|
+
On structured entries, `<L>` addresses item index, not line number.
|
|
41
|
+
|
|
40
42
|
## Body matcher dispatch (FIND, READ, SHOW, HIDE)
|
|
41
43
|
|
|
42
44
|
| leading prefix | dialect | form |
|
|
@@ -96,6 +98,7 @@ Body content is character-perfect, exactly matching whitespace.
|
|
|
96
98
|
```
|
|
97
99
|
<<FIND(config/**/*.xml)://user[@role='admin']:FIND
|
|
98
100
|
<<READ(lang/??.json):$.greeting:READ
|
|
101
|
+
<<READ(log://1/2/3):$[*].matched.codename:READ
|
|
99
102
|
<<READ(https://en.wikipedia.org/wiki/Paris)<426,465>::READ
|
|
100
103
|
<<EDIT[philosophy,existentialism](known://philosophy/existentialism/meaning):The meaning of life is 42:EDIT
|
|
101
104
|
<<EDIT[france,geography](unknown://countries/france/capital):What is the capital of France?:EDIT
|
|
@@ -109,6 +112,7 @@ Body content is character-perfect, exactly matching whitespace.
|
|
|
109
112
|
<<EDIT(known://plan)<2>:- [x] Discover capital of France:EDIT
|
|
110
113
|
<<EDIT(known://countries/france/capital)<-1>:[Wikipedia: Paris](https://en.wikipedia.org/wiki/Paris):EDIT
|
|
111
114
|
<<EDIT(known://countries/france/capital)<1,-1>::EDIT
|
|
115
|
+
<<EDIT(known://users)<-1>:{"name":"Eve"}:EDIT
|
|
112
116
|
<<COPY[archive,2026-05-14](known://draft):known://archive/2026-05-14/draft:COPY
|
|
113
117
|
<<MOVE(known://draft/answer):known://final/answer:MOVE
|
|
114
118
|
<<MOVE(known://obsolete/note):/dev/null:MOVE
|