From 946cab444bc301d8a7c756a1bab039558288de89 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Wed, 11 Oct 2017 13:41:07 -0300 Subject: Cleanup work --- base/docs/man5/BlockReaderCLI.5 | 51 ++++++++++++++++++++++++++++++++++++++++- base/docs/man5/custom.tmac | 11 +++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 base/docs/man5/custom.tmac (limited to 'base/docs') diff --git a/base/docs/man5/BlockReaderCLI.5 b/base/docs/man5/BlockReaderCLI.5 index 178b6de..28b9e3f 100644 --- a/base/docs/man5/BlockReaderCLI.5 +++ b/base/docs/man5/BlockReaderCLI.5 @@ -1,3 +1,5 @@ +\# Load custom macros +.so custom.tmac .TH BlockReaderCLI 5 "2017-09-10" "" "" .SH NAME BlockReaderCLI \- configure \fBBlockReaders\fP from a script @@ -5,4 +7,51 @@ BlockReaderCLI \- configure \fBBlockReaders\fP from a script A small language for configuring \fBBlockReaders\fP from a script. This is a command based language, where each command comes on its own line for configuration. Certain commands may start a sub-mode. -.SH +.SH COMMANDS +The following is a description of the syntax and usage for each command. The +following meta-syntatic variables are given the following meanings whenever they +are encountered. +.SS VARIABLES +.TP +.B +The name to bind the block reader this command creates to +.TP +.B +The name of an existing block reader. +.SS DESCRIPTIONS +.TP +.BI "def\-filtered" " " +Define a block reader that only accepts blocks that pass the specified filter. +.Arguments +.TP +.I +A regular expression that the blocks must match. +.EArguments +.TP +.BI "def\-layered" " " +Define a block reader that merges two readers, but prioritizes blocks from one +over the other. +.TP +.BI "def\-pushback" " " +Define a block reader that supports ``unreading'' blocks. +.TP +.BI "def\-simple" " " +Define a block reader that reads blocks delimited by a pattern from an input +source. +.Arguments +.TP +.I +The name of the input source to read blocks from. +.TP +.I +The pattern to use as a delimiter between blocks. +.EArguments +.TP +.BI "def\-serial" " ..." +Defines a block reader that concatenates two block readers. +.TP +.BI "def\-toggled" " " +Defines a block reader that swaps reading blocks between two block readers. +.TP +.BI "}, end, exit, quit" +All of these exit the configuration CLI. diff --git a/base/docs/man5/custom.tmac b/base/docs/man5/custom.tmac new file mode 100644 index 0000000..ef07991 --- /dev/null +++ b/base/docs/man5/custom.tmac @@ -0,0 +1,11 @@ +\# Begin a arguments block for a command +.de Arguments +.RS +.IP "\fBARGUMENTS\fP" +.RS +.. +\# End an arguments block for a command +.de EArguments +.RE +.RE +.. -- cgit v1.2.3