package xm::cdefs;
use xm::o;
"
will look for a CBLKs and their preceding names and comments.
Just mark these as CDEFs for later parsing...
"}
my $in = shift;
$in =~ s{ ( (?: <CDOC(?:\s[^<>]*)?>
(?:(?:.(?!</?CDOC[\s>]))*.?)
</CDOC(?:\s[^<>]*)?> \ *\s?\ * )* )
( \w[\s\w\[\*\]\(\,\)\:\=\.]* ) ( (?: <CDOC(?:\s[^<>]*)?> (?:(?:.(?!</?CDOC[\s>]))*.?)
</CDOC(?:\s[^<>]*)?> \ *\s?\ * )* )
( <CBLK(?:\s[^<>]*)?> (?:(?:.(?!</?CBLK[\s>]))*.?)
</CBLK(?:\s[^<>]*)?> )
}
{ "<ITEMCDEF>"
.$1 .(length $2 ? "<CDCL>".$2."</CDCL>" : "")
.$3 .$4 ."</ITEMCDEF>"
}gsex;
$in =~ s{ (</ITEMCDEF>) (\s*\; | \s*\**\s*[\w\[\]]+ \s*\**\s*\;) }
{$2.$1}gsex; $in =~ s{ (\s*) ([\w\[\*\]\s]*) (<ITEMCDEF>)}
{$1.$3.$2}gsex; return $in;
}
return xm::o::args_stdin(@_,DESC); }
return DO(xm::o::args_stdin(@_,DESC)); }
1;