sasFormatExtract: extract assignments from a SAS FORMAT definition.
Description
this is modelled entirely on a single chunk of SAS code, but
hopefully will have some generalizability. It relies heavily on lists and
regex, but, as you will see from the code, R is not a great language with
which to write a SAS parser.
Usage
sasFormatExtract(sasTxt)
Arguments
sasTxt
is a character vector, with one item per line, e.g. from
readLines