Anvil / bash-doxygen

A doxygen filter for bash scripts
Do What The F*ck You Want To Public License
91 stars 24 forks source link

Build call graph #3

Open achorein opened 8 years ago

achorein commented 8 years ago

Hi.

Is there a way to detect function calls in order to build the call graph ?

Anvil commented 8 years ago

Well. There's always a way. The question is how much blood you want to spill to get it. (Yeah, blood. Sed is dark magic).

Detecting command names in simple command lines should be doable. But I think it will not be trivial if you want to cover all the cases. If parameters can be removed from the call without confusing doxygen, I might give it a shot. At least for top level commands. Nested calls might be more difficult.