define_block (
identifier,
block_tag,
block_data,
)
Define a Martel grouping which can parse a block of text.
Many of the GenBank lines we'll want to process are grouped into
a block like:
IDENTIFIER Blah blah blah
Where blah blah blah can wrap for multiple lines. This function makes
it easy to consistently define a definition for these blocks.
Arguments:
o identifier - The identifier that begins the block (like DEFINITION).
o block_tag - A callback tag for the entire block.
o block_data - A callback tag for the data in the block (ie. the
stuff you are interested in).
|