Re: json and ddoc

2012-08-01 Thread Adam D. Ruppe
On Wednesday, 1 August 2012 at 17:40:13 UTC, Philippe Sigaud wrote: No no no, I wasn't talking about your app! dpldocs is cool! Thanks! I think the new version will be even better. Preview: http://dpldocs.info/search/search-2?searchTerm=post http://dpldocs.info/search/search-2?searchTerm=get

Re: json and ddoc

2012-08-01 Thread Adam D. Ruppe
On Wednesday, 1 August 2012 at 17:52:02 UTC, Brad Anderson wrote: There is already a pull request to add (at least some) ddoc to json: http://forum.dlang.org/post/ycfyhcsbciguzaxwu...@forum.dlang.org Well, we already have some... but that request looks like it does a lot of good stuff.

Re: json and ddoc

2012-08-01 Thread Philippe Sigaud
On Wed, Aug 1, 2012 at 4:46 PM, Adam D. Ruppe wrote: > On Wednesday, 1 August 2012 at 14:36:26 UTC, Philippe Sigaud wrote: >> >> Well, the comments are discarded as soon as lexical analysis is done, I >> guess. > > > They are actually there if you do both -X and -D together. > (-X alone doesn't sh

Re: json and ddoc

2012-08-01 Thread Brad Roberts
On 8/1/2012 8:20 AM, Adam D. Ruppe wrote: > On Wednesday, 1 August 2012 at 15:09:45 UTC, Sönke Ludwig wrote: >> It doesn't really have dependencies to vibe.d so ripping it out should also >> be easy. > > Thanks! It looks like that will do the job. I'd almost pay money for the ddoc support that's

Re: json and ddoc

2012-08-01 Thread Adam D. Ruppe
On Wednesday, 1 August 2012 at 15:09:45 UTC, Sönke Ludwig wrote: It doesn't really have dependencies to vibe.d so ripping it out should also be easy. Thanks! It looks like that will do the job.

Re: json and ddoc

2012-08-01 Thread Sönke Ludwig
Am 01.08.2012 16:07, schrieb Adam D. Ruppe: I'm (finally) updating my dpldocs.info website again, and before I just pulled names from the generated Phobos html. This time, I want to use dmd's json output to avoid dependency on the specific html layout of std.ddoc. Anyway I hit dmd -c -X -D *.d

Re: json and ddoc

2012-08-01 Thread Adam D. Ruppe
On Wednesday, 1 August 2012 at 14:36:26 UTC, Philippe Sigaud wrote: Well, the comments are discarded as soon as lexical analysis is done, I guess. They are actually there if you do both -X and -D together. (-X alone doesn't show it; it must be discarded then, but -D keeps it). The problem is

Re: json and ddoc

2012-08-01 Thread Philippe Sigaud
On Wed, Aug 1, 2012 at 4:07 PM, Adam D. Ruppe wrote: > I'm (finally) updating my dpldocs.info website again, and Yes! > Anyway I hit dmd -c -X -D *.d in the phobos dir. Boom, I got > one big .json file with all the info. > > But, the comments aren't parsed at all. Well, the comments are discar