It is currently Sun May 19, 2013 7:21 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Is there something like a documentation creator?
PostPosted: Sun Nov 11, 2012 12:56 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1561
Location: Germany
OK, lately I found out about some cool stuff other programming languages offer. One of it was an automatic documentation creator.

Most of you might already know what I'm talking about: It parses the source code for special comments (@param, @version, @return etc.) and uses them to generate a basic source documentation e.g. in HTML. A parsable source could look like this:
Code:
;**
; Calculates square number and creates a string of it.
; @param Number The number to calculate with.
; @return Square number as string.
; @version: 1.0, 2012-11-10 09:08:07
;*
Procedure.s SquareStr(Number.i)
   ProcedureReturn Str(Number * Number)
EndProcedure

Debug SquareStr(2)
...Results in e.g.:
Quote:
Procedures:
- SquareStr()
++ Information:
--- Location: "C:\Test.pb", Line 7-9
--- Body Size: 37 Characters
--- Version: 1.0
--- Date: 10 Nov., 2012
++ Purpose: Calculates square number and creates a string of it.
++ Parameters:
--- Number (integer) - The number to calculate with.
[...]

Now the question: Does such a tool exist for PureBasic? Or is there anything more general which I could configure to parse PB code?


(P.S. If anyone comes up with "just use language XYZ which is way better than PB and already has all you need": Well thanks for the suggestion, but I want to stay with PureBasic that's why I'm posting here... 8) )


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Sun Nov 11, 2012 1:14 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4714
Location: Berlin - Germany
here: viewtopic.php?p=152585#p152585
but download no more available :(

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Mon Nov 12, 2012 7:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Dec 20, 2003 6:19 pm
Posts: 467
Location: Switzerland
Here is the source as it was last compiled:
http://remi.secretly.de/downloads/jaPBDoc.zip

It might need some updates (e.g. keywords since PB 4.10)
or it might just work. Maybe it is still useful but I cannot
work on it currently.

Cheers!
Remi

_________________
Athlon64 3700+, 1024MB Ram, Radeon X1600


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Mon Nov 12, 2012 10:06 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1561
Location: Germany
Thank you Remi! I'll check it out as soon as I have some time...


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Mon Nov 12, 2012 11:25 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4714
Location: Berlin - Germany
Thx Remi :D

I have updated your version to support PB5.00 and x64
I have added a windows executable and run.bat for windows user.

Download: https://dl.dropbox.com/u/3086026/jaPBDoc.zip

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 14 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Mon Nov 12, 2012 11:33 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2238
Location: Italy
Thank you remi_meier and thanks to ts-soft for the update. :wink:

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
 Post subject: Re: Is there something like a documentation creator?
PostPosted: Tue Nov 13, 2012 12:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Dec 20, 2003 6:19 pm
Posts: 467
Location: Switzerland
ts-soft wrote:
Thx Remi :D

I have updated your version to support PB5.00 and x64
I have added a windows executable and run.bat for windows user.

Download: https://dl.dropbox.com/u/3086026/jaPBDoc.zip

Cool! :)

_________________
Athlon64 3700+, 1024MB Ram, Radeon X1600


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye