# How to use rdoc parsers outside of rdoc?

**URL:** <https://www.ruby-forum.com/t/how-to-use-rdoc-parsers-outside-of-rdoc/100222>\
**Category:** Ruby\
**Created:** [July 27, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-use-rdoc-parsers-outside-of-rdoc/100222 "2006-07-27T21:22:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Van\_Delst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/7cd45c/32.png) [@Paul\_Van\_Delst](https://www.ruby-forum.com/u/Paul_Van_Delst)\
**Post date:** [July 27, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-use-rdoc-parsers-outside-of-rdoc/100222/1 "2006-07-27T21:22:06Z")

</div>

Hello,

I want to parse some source code using the parsers that come with rdoc.  
E.g. use  
parse\_f95.rb to read a Fortran95 source file and return all the various  
bits. The  
rdoc/parsers documentation isn’t very enlightening (to me at least,  
still a newbie).

The reason I ask is I want to use ruby to automatically generate a bunch  
of Fortran95 code  
based on a derived type (structure) definition. In ruby-speak (I think),  
I want to  
generate the various “standard” public class methods based on a file  
containing the class  
definition.

Hopefully my question makes sense.

Thanks for any info.

cheers,

paulv
