\# Load custom macros .so custom.tmac .TH BlockReaderCLI 5 "2017-09-10" "" "" .SH NAME BlockReaderCLI \- configure \fBBlockReaders\fP from a script .SH DESCRIPTION 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 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.