Top Prev Next Up Down

CodeReWrite

Utility for rewriting source code when changing code from TEST to Quality Assurance (QA).
Syntax: CodeReWrite {-conf <conf-file>} {-lst <list-file>} <input-file> <output-file>
Contents of (possible) Conf-file (a.conf):

#
fnk = Qinit
fnk = Qblock
fnk = Qappend
fnk = Qappend_alt
rm = with[\s]+Y2018\.Text\.TestQ

in use with package Y2018.Text.TestQ and usage see Procedures for debug purpose in Y2018-Text code In both cases blanks can preceed the text, but nothing else.
if a row starts with "--(BLK" (an ADA comment) then this row and all following lines are removed until a row starts with "--)BLK" comment, which is also removed. This feature exists even if we donnot give a Conf-file.

Note CodeReWrite is very line oriented and if used ADA code must be written in a specific CodeReWrite style. Some caveats exists
It is also possible to write your own Qappend function but it is important that the definition is inside a '--(BLK', '--)BLK' block.

To the list-file is appended