February 22, 2004 Re: Downside of the absence of headers | ||||
---|---|---|---|---|
| ||||
Posted in reply to SpookyET | "SpookyET" wrote... > All I'm saying is take the good features of .NET/C#. But you seem to be > closed minded. > At the same time, one could easily argued you're the one who's closed minded here... One has to consider what's good and bad about a feature and it's implication on the rest of the language before one decide to include it. Otherwise, you'll just end up with something unusable even if all the indivual features have its merit. KTC -- Experience is a good school but the fees are high. - Heinrich Heine |
February 22, 2004 Re: Downside of the absence of headers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mik Mifflin | Mik Mifflin wrote: > Ben Hinkle wrote: > >>Note javap works on class files, not source files, so I'm not too clear >>on what you are asking for: to strip out declarations from D source or to >>disassemble some compiled code to get the original D source. >> >>While programmers might be loathe to document code they sure should >>document APIs - otherwise no-one will want to use it. >> >>-Ben > > > Sorry, I should have made myself more clear. I was looking for a program to > parse d source and dump out the public methods and variables of classes. I > haven't written a parser in a long while, but to write a small parser to > recognize classes and public identifiers wouldn't be too difficult, if I > understand correctly. So.. I take it no program exists yet? I'm not sure that someone has written quite what you're looking for, but you may be able to benefit from some similar projects: *** dig (http://groups.yahoo.com/group/d_lab/) *** net\BurtonRadons\digc\dfiler.d I think this file is supposed to make a .d file DOxygen friendly net\BurtonRadons\digc\strip.d This file is susposed to remove whitespace and function bodies. It mostly works, but it does seem let some parts of the function seep through. It may be easy to fix, but I haven't dug into it to fix it. *** d2html *** Turns a .d source code into syntax-highlighed .html file. http://jcc_7.tripod.com/d/ *** Dependency Checker *** http://www.wikiservice.at/d/wiki.cgi?LarsIvarIgesund *** \dmd\src\dmd\ *** Since Walter has released the source to the DMD front-end, you may be able to find some help there. It's written in C++, but Walter didn't try to obfuscate it. -- Justin http://jcc_7.tripod.com/d/ |
February 22, 2004 Re: Downside of the absence of headers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mik Mifflin | You can use dtags , it comes with DIDE but its standalone. It doesnt recognize templates but I can give you the source, its just a matter of adding a TEMPLATE type and handling it in the analyseParens function. The flags I use are -u --fields=+SainKm --language-force=d C On Sat, 21 Feb 2004 21:56:12 -0500, Mik Mifflin <mik42@NOadelphiaSPAM.net> wrote: > Ben Hinkle wrote: >> Note javap works on class files, not source files, so I'm not too clear >> on what you are asking for: to strip out declarations from D source or to >> disassemble some compiled code to get the original D source. >> >> While programmers might be loathe to document code they sure should >> document APIs - otherwise no-one will want to use it. >> >> -Ben > > Sorry, I should have made myself more clear. I was looking for a program to > parse d source and dump out the public methods and variables of classes. I > haven't written a parser in a long while, but to write a small parser to > recognize classes and public identifiers wouldn't be too difficult, if I > understand correctly. So.. I take it no program exists yet? > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ |
February 22, 2004 Re: Downside of the absence of headers | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | "J C Calvarese" <jcc7@cox.net> wrote in message news:c1b0fb$13pq$1@digitaldaemon.com... > Since Walter has released the source to the DMD front-end, you may be able to find some help there. It's written in C++, but Walter didn't try to obfuscate it. Some have argued that I don't need to try <g>. |
February 22, 2004 Re: Downside of the absence of headers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote: > "J C Calvarese" <jcc7@cox.net> wrote in message > news:c1b0fb$13pq$1@digitaldaemon.com... > >>Since Walter has released the source to the DMD front-end, you may be >>able to find some help there. It's written in C++, but Walter didn't try >>to obfuscate it. > > Some have argued that I don't need to try <g>. LOL! I guess I shouldn't even have mentioned that. Obviously, I meant that the code seems clear to me (not that I pretend to program in C++). -- Justin http://jcc_7.tripod.com/d/ |
Copyright © 1999-2021 by the D Language Foundation