diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-01-17 14:23:04 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-01-17 14:23:04 -0800 |
commit | 6bd2d9f77bde1df296f344fba6ce2c12265986f6 (patch) | |
tree | 519cac4307b1df14ac6440385306a81711608962 | |
parent | 04ea61546d1d42956a3d637098936d79f60c60f3 (diff) | |
download | txr-6bd2d9f77bde1df296f344fba6ce2c12265986f6.tar.gz txr-6bd2d9f77bde1df296f344fba6ce2c12265986f6.tar.bz2 txr-6bd2d9f77bde1df296f344fba6ce2c12265986f6.zip |
doc: fix doc for @(struct ...) pattern operator.
* txr.1: The operator is struct not structure. Formalize the
heading as Pattern operator.
* checkman.txr: Recognize the new Pattern operator heading.
-rw-r--r-- | checkman.txr | 4 | ||||
-rw-r--r-- | txr.1 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/checkman.txr b/checkman.txr index cbec82be..48df2606 100644 --- a/checkman.txr +++ b/checkman.txr @@ -57,11 +57,11 @@ @ (assert bad ln `no .synb after Operator and macro heading`) @ (check-synb) @ (or) -.coNP @{type /Function|Operator|Macro|Accessor|Method|Structure|(Operators|Macros)\/function/}s@(assert bad ln `bad @{type}s heading`)@(rep :gap 0) @@, @{x /\S+/}@(last :mandatory) @@ @y and @@ @{z /\S+/}@(end) +.coNP @{type /Function|Operator|Macro|Accessor|Method|Structure|Pattern operator|(Operators|Macros)\/function/}s@(assert bad ln `bad @{type}s heading`)@(rep :gap 0) @@, @{x /\S+/}@(last :mandatory) @@ @y and @@ @{z /\S+/}@(end) @ (assert bad ln `no .synb after @{type}s heading`) @ (check-synb) @ (or) -.coNP @{type /Function|Operator|Macro|Accessor|Method|Structure|Parameter list macro/}@(assert bad ln `bad @type heading`) @@ @{x /\S+/}@junk +.coNP @{type /Function|Operator|Macro|Accessor|Method|Structure|Pattern operator|Parameter list macro/}@(assert bad ln `bad @type heading`) @@ @{x /\S+/}@junk @ (assert bad ln `extra elements in singular @type heading`) @ (bind junk "") @ (assert bad ln `no .synb after @type heading`) @@ -39779,10 +39779,10 @@ against the corresponding vector element. --> (2 4) .brev -.NP* Structure match +.coNP Pattern operator @ struct .synb -.mets @(structure << name >> { slot-name << pattern }*) -.mets @(structure << pattern >> { slot-name << pattern }*) +.mets @(struct < name >> { slot-name << pattern }*) +.mets @(struct < pattern >> { slot-name << pattern }*) .syne .desc The structure pattern operator matches a structure object. The operator |