I uploaded the next version to sourceforge.
This version added a few more options relevant to my initial goal of building file lists and extracting other info for implementation related tasks.
(See the previous post for download and install details.)
Usage: analyze.rb (--tcl out.tcl)? (--exit_on_err)? topModule vlogOpts+
--tcl out.tcl : dump details in tcl format to "out.tcl".
--exit_on_err : exit status != 0 if any parse errors.
: And, no "out.tcl" generated if errors.
vlogOpts is one of
The additional options are: --tcl and --exit_on_err.
You should try these out. The format/info contained in the generated out.tcl file should be self-explanatory.
Let me know any bugs, improvements, ideas, praise, etc.
All about a Verilog V200x parser project hosted at SourceForge: http://v2kparse.sourceforge.net/