diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-26 07:26:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-26 07:26:43 -0700 |
commit | 7d0f84199ff2b5662f171135cc1f271f5a8b7ec1 (patch) | |
tree | 44081c43fe7e264b8ae204daedff6ba39b904ff0 | |
parent | 5c9c19fd5e3dc428369f4a84d335c7a8e0bbc560 (diff) | |
download | txr-7d0f84199ff2b5662f171135cc1f271f5a8b7ec1.tar.gz txr-7d0f84199ff2b5662f171135cc1f271f5a8b7ec1.tar.bz2 txr-7d0f84199ff2b5662f171135cc1f271f5a8b7ec1.zip |
Change .meta to single-argument.
* checkman.txr: Check .meta similarly to .code.
* txr.1: Change .meta macro to take only one argument,
so that text with spaces must be quoted.
Errors found and fixed.
-rw-r--r-- | checkman.txr | 4 | ||||
-rw-r--r-- | txr.1 | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/checkman.txr b/checkman.txr index a9c18835..e9c49348 100644 --- a/checkman.txr +++ b/checkman.txr @@ -63,9 +63,9 @@ @;; @(define check-code ()) @ (cases) -.code "@(assert bad ln `.code needs one argument`)@x"@(eol) +.@{type /code|meta/} "@(assert bad ln `.@type needs one argument`)@x"@(eol) @ (or) -.code @(assert bad ln `.code needs one argument`)@{x /\S+/}@(eol) +.@{type /code|meta/} @(assert bad ln `.@type needs one argument`)@{x /\S+/}@(eol) @ (or) .cod3 @(assert bad ln `.cod3 needs three arguments`)@x @y @{z /\S+/}@(eol) @ (or) @@ -56,10 +56,10 @@ .\" courier in PDF/HTML. .de meta . ie n \{\ -<\\$*> +<\\$1> . \} . el \{\ -\f[5]\\$*\f[] +\f[5]\\$1\f[] . \} .. .\" like .meta but tack on second argument with no space. @@ -10440,7 +10440,7 @@ is known as .SS* Syntactic Places and Accessors The \*(TL feature known as -.meta syntactic places +.I syntactic places allows programs to use the syntax of a form which is used to .I access @@ -16511,7 +16511,7 @@ The macro generates code which, when evaluated, immediately produces a lazy cons. The expressions .meta car-expression and -.meta cdr-expression +.meta cdr-expression are not immediately evaluated. Rather, when either the .code car or @@ -20905,7 +20905,7 @@ is visible to subsequent .metn init-form -s. Additionally, the values of the -.meta init-form -s +.metn init-form -s are noted as they are produced. When the .code with-objects form terminates, by any means, the @@ -32778,7 +32778,7 @@ Each is called, passed the corresponding argument. The return values of these functions are then passed as arguments to -.meta main function +.meta main-function and the resulting value is returned. If the returned function is called with fewer arguments than there @@ -33015,9 +33015,9 @@ The syntax of a directive is generally as follows: In other words, the .code ~ (tilde) character, followed by a -.meta width +.meta width specifier, a -.meta precision +.meta precision specifier introduced by a comma, and a .metn letter , |