BEGIN {
print "
"
print "Classes
"
print "
"
print ""
print "Parameter | "
print "Definition | "
print "How it was calculated |
"
}
function print_line(name, comment, even, end) {
if(name != ""){
if(even) print ""
else print "
"
print " "name" | "
split(comment, a, "|");
print " "a[1]" | "
print " "a[2]" | "
print "
"
}
}
/^ *class ExRoot/{
print_line(name, comment, even, 1);
even = 1;
name = "";
comment = "";
split($2, a, ":");
print "
"a[1]"
|
"
}
/: public ExRoot[^S]/{
name = sprintf("%s", $4, $4);
split($2, a, ":");
comment = sprintf("%s inherits all %s parameters", a[1], $4);
}
/^ *[A-Za-z_]* [A-Za-z].*; \/\/ / {
print_line(name, comment, even, 0);
split($2, a, ";");
name = a[1];
split($0, a, "// ");
comment = a[2];
even = !even;
}
/^ +\/\/ /{split($0, a, "// "); comment = comment" "a[2]}
END {
print_line(name, comment, even, 1);
print "
"
print "