MiniOxygen is a automatic documentation generator (mostly) compatible with the DOxygen/Javadoc
notation written in Perl.
It outputs to Markdown format on stdout.
It is quite basic and can be used with almost any language.
This tool is modern Perl, which means it requires a few modules to be present on your system, like libcarp-assert-perl for example.
Basic command line is:
# minioxygen [--lang|-l language] file(s)...
Language can be any language (basic mode) or 'c' (improved mode).
As an example, MiniOxygen will parse itself with the command:
# minioxygen MiniOxygen/*.pm
Any file containing a @file tag will be parsed and its documentation will be generated.
- brief
- file
- function
- param
- return
- def
- enum
- struct (pending)
Auto-generated documentation for MiniOxygen starts after this line
Markdown module for MiniOxygen
Back to File/objects
Back to File/objects
Back to File/objects
- MiniOxygen::Markdown::header
- MiniOxygen::Markdown::line
- MiniOxygen::Markdown::normal
- MiniOxygen::Markdown::bold
- MiniOxygen::Markdown::bullet
- MiniOxygen::Markdown::create_link
- MiniOxygen::Markdown::newline
- MiniOxygen::Markdown::inline_code
- MiniOxygen::Markdown::blockquote
- MiniOxygen::Markdown::code_block
Back to File/objects
Outputs a level n header
MiniOxygen::Markdown::header ( level, str )
level : the heading level (1-n)
str : the heading content/text
Back to MiniOxygen::Markdown
Outputs a line
MiniOxygen::Markdown::line ( )
Back to MiniOxygen::Markdown
Outputs normal text
MiniOxygen::Markdown::normal ( str )
str : the text
Back to MiniOxygen::Markdown
Outputs bold text
MiniOxygen::Markdown::bold ( str )
str : the text
Back to MiniOxygen::Markdown
Outputs a bullet point
MiniOxygen::Markdown::bullet ( )
Back to MiniOxygen::Markdown
Outputs a link
MiniOxygen::Markdown::create_link ( str )
str : the text of the link
Back to MiniOxygen::Markdown
Outputs a new line
MiniOxygen::Markdown::newline ( )
Back to MiniOxygen::Markdown
Outputs inlined code
MiniOxygen::Markdown::inline_code ( str )
str : the inlined code string
Back to MiniOxygen::Markdown
Outputs a blockquote (> )
MiniOxygen::Markdown::blockquote ( str )
str : the code to quote
Back to MiniOxygen::Markdown
Outputs a block of code
MiniOxygen::Markdown::code_block ( str )
str : the block of code
Back to MiniOxygen::Markdown
Markdown rendering module for MiniOxygen
Back to File/objects
Back to File/objects
Back to File/objects
- MiniOxygen::Render::list_files
- MiniOxygen::Render::list_defs
- MiniOxygen::Render::def
- MiniOxygen::Render::list_enums
- MiniOxygen::Render::enum
- MiniOxygen::Render::list_functions
- MiniOxygen::Render::function
- MiniOxygen::Render::list_structs
- MiniOxygen::Render::struct
Back to File/objects
Renders a bullet list of files contained in hash
MiniOxygen::Render::list_files ( hash )
hash : the db/hash containing all the javadoc information
Back to MiniOxygen::Render
Renders a bullet list of defs/macros
MiniOxygen::Render::list_defs ( array )
array : an array of MiniOxygen::Token objects
Back to MiniOxygen::Render
Renders a def with details
MiniOxygen::Render::def ( token, parent )
token : a def token
parent : the parent object name/link
Back to MiniOxygen::Render
Renders a bullet list of enums
MiniOxygen::Render::list_enums ( array )
array : an array of MiniOxygen::Token objects
Back to MiniOxygen::Render
Renders an enum with details
MiniOxygen::Render::enum ( token, parent )
token : an enum token
parent : the parent object name/link
Back to MiniOxygen::Render
Renders a bullet list of functions
MiniOxygen::Render::list_functions ( array )
array : an array of MiniOxygen::Token objects
Back to MiniOxygen::Render
Renders a function with details
MiniOxygen::Render::function ( token, parent )
token : a function token
parent : the parent object name/link
Back to MiniOxygen::Render
Renders a bullet list of data structures
MiniOxygen::Render::list_structs ( array )
array : an array of MiniOxygen::Token objects
Back to MiniOxygen::Render
Renders a struct with details
MiniOxygen::Render::struct ( token, parent )
token : a struct token
parent : the parent object name/link
Back to MiniOxygen::Render
Main source code parsing module for MiniOxygen
Back to File/objects
Back to File/objects
Back to File/objects
Back to File/objects
Creates a new MiniOxygen::Source object
MiniOxygen::Source::new ( path, lang )
path : the path to the source file to open/parse
lang : the language of the source file (c, perl, ...)
a MiniOxygen::Source object
Back to MiniOxygen::Source
Gets the next MiniOxygen token from file
MiniOxygen::Source::next_token ( )
a MiniOxygen::Token object
Back to MiniOxygen::Source
This is the main token management module
Back to File/objects
Back to File/objects
Back to File/objects
- MiniOxygen::Token::new
- MiniOxygen::Token::append_text
- MiniOxygen::Token::add_keyword
- MiniOxygen::Token::c_enum
- MiniOxygen::Token::c_function
- MiniOxygen::Token::c_struct
Back to File/objects
Creates a new MiniOxygen::Token object
MiniOxygen::Token::new ( )
MiniOxygen::Token A Token object
Back to MiniOxygen::Token
Appends some text to the token description
MiniOxygen::Token::append_text ( text )
text : text to append to the token description
Back to MiniOxygen::Token
Adds a pair keyword/value to the token
MiniOxygen::Token::add_keyword ( keyword, value )
keyword : the keyword to add to this token
value : the keyword associated value / string
Back to MiniOxygen::Token
Interprets a c enumeration
MiniOxygen::Token::c_enum ( array )
array : containing the enum intenrals (and more)
Back to MiniOxygen::Token
Interprets a c function prototype
MiniOxygen::Token::c_function ( lines )
lines : an array containing the prototype's lines of code
Back to MiniOxygen::Token
Inteprets a c structure
MiniOxygen::Token::c_struct ( array )
array : array containtning the structure internals
Back to MiniOxygen::Token
Input module for MiniOxygen
Back to File/objects
Back to File/objects
Back to File/objects
Back to File/objects
Reads a text file and stores each line in an array
MiniOxygen::Input::file_to_array ( path )
path : the path to the file
array an array containing one line per entry
Back to MiniOxygen::Input
Reads a text file and stores each line in an single line
MiniOxygen::Input::file_to_str ( path )
path : the path to the file
string a string containing the whole text file
Back to MiniOxygen::Input