digitalmars.D - D support in Exuberant Ctags 5.8 for Windows
- "Gary Willoughby" <dev kalekold.net> Jul 26 2012
- "dnewbie" <run3 myopera.com> Jul 26 2012
- "Brian Schott" <briancschott gmail.com> Jul 26 2012
- =?ISO-8859-1?Q?Jos=E9_Armando_Garc=EDa_Sancio?= <jsancio gmail.com> Jul 26 2012
- "Brian Schott" <briancschott gmail.com> Jul 26 2012
- =?ISO-8859-1?Q?Jos=E9_Armando_Garc=EDa_Sancio?= <jsancio gmail.com> Jul 26 2012
- "Brian Schott" <briancschott gmail.com> Jul 26 2012
- "p.crimsonsphere" <p.crimsonsphere gmail.com> Sep 24 2012
I'm looking at this page and trying to download the latest CTags 5.8 with D patch compiled for Windows but i'm getting a dead link. Does anyone else have this file or can point me to another link? http://prowiki.org/wiki4d/wiki.cgi?ReferenceForTools/ExuberantCtags
Jul 26 2012
On Thursday, 26 July 2012 at 22:06:08 UTC, Gary Willoughby wrote:I'm looking at this page and trying to download the latest CTags 5.8 with D patch compiled for Windows but i'm getting a dead link. Does anyone else have this file or can point me to another link? http://prowiki.org/wiki4d/wiki.cgi?ReferenceForTools/ExuberantCtags
There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
Jul 26 2012
On Thursday, 26 July 2012 at 22:34:51 UTC, dnewbie wrote:There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
But be warned that I haven't tested it on Windows.
Jul 26 2012
On Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote:There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
Very interesting. Is this Dscanner pluggable? I would be interesting to use Dscanner for localization. For example it would be nice if it could generate a list of all the strings that are passed to a specific function. This is how people generate localizable string to use for gettext. Thoughts? -Jose
Jul 26 2012
On Thursday, 26 July 2012 at 23:51:34 UTC, José Armando García Sancio wrote:On Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote:There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
Very interesting. Is this Dscanner pluggable? I would be interesting to use Dscanner for localization. For example it would be nice if it could generate a list of all the strings that are passed to a specific function. This is how people generate localizable string to use for gettext. Thoughts? -Jose
Dscanner has a tokenizer for D code, so it would not be hard to make a program that uses the tokenizer to swap out string literals.
Jul 26 2012
On Thu, Jul 26, 2012 at 4:59 PM, Brian Schott <briancschott gmail.com> wrot= e:On Thursday, 26 July 2012 at 23:51:34 UTC, Jos=E9 Armando Garc=EDa Sancio=
On Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote:There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
Very interesting. Is this Dscanner pluggable? I would be interesting to use Dscanner for localization. For example it would be nice if it could generate a list of all the strings that are passed to a specific function. This is how people generate localizable string to use for gettext. Thoughts? -Jose
Dscanner has a tokenizer for D code, so it would not be hard to make a program that uses the tokenizer to swap out string literals.
Swap out? Not sure what you mean by this. I don't want to localize the code. I just want to enumerate them all so that a localization team can provide a catalog that could be use to do the translation at runtime. In C/C++ a lot of teams do localization by providing a #define "_" that simply returns the string passed into it. In D this would be a template that could be compiled out. The cool thing about having this "_" macro is that then you can have a tool that can extract all occurrences of such a macro. Gettext has such a tool for C/C++. If we want to leverage gettext in D then we would have to build the equivalent of that tool for D. I was wondering if Dscanner can be extended to do this. Thanks, -Jose
Jul 26 2012
On Friday, 27 July 2012 at 00:19:37 UTC, José Armando García Sancio wrote:On Thu, Jul 26, 2012 at 4:59 PM, Brian Schott <briancschott gmail.com> wrote:On Thursday, 26 July 2012 at 23:51:34 UTC, José Armando García Sancio wrote:On Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote:There is --ctags output in Dscanner https://github.com/Hackerpilot/Dscanner
Very interesting. Is this Dscanner pluggable? I would be interesting to use Dscanner for localization. For example it would be nice if it could generate a list of all the strings that are passed to a specific function. This is how people generate localizable string to use for gettext. Thoughts? -Jose
Dscanner has a tokenizer for D code, so it would not be hard to make a program that uses the tokenizer to swap out string literals.
Swap out? Not sure what you mean by this. I don't want to localize the code. I just want to enumerate them all so that a localization team can provide a catalog that could be use to do the translation at runtime. In C/C++ a lot of teams do localization by providing a #define "_" that simply returns the string passed into it. In D this would be a template that could be compiled out. The cool thing about having this "_" macro is that then you can have a tool that can extract all occurrences of such a macro. Gettext has such a tool for C/C++. If we want to leverage gettext in D then we would have to build the equivalent of that tool for D. I was wondering if Dscanner can be extended to do this. Thanks, -Jose
Something like this: writeln(tokenize(sourceCode).filter!("a.type > TokenType.STRINGS_BEGIN && a.type < TokenType.STRINGS_END")().map!("a.value")().joiner("\n")); I'm booted into Windows at the moment so I haven't tested that, but it should work if you just want a dump of all the strings. The line-of-code feature works in a similar way.
Jul 26 2012
Hi there. So, anyway, have you found any live link to download Ctags 5.8 working for D programming language? I found here http://pastie.org/971968 and applied it to http://dfrank.ru/ctags581 I downloaded compiler for Ctags, I mean, BCC32 and failed to compile it. If anyone has a Ctags 5.8 or 5.81 for D language, please~ Regards.
Sep 24 2012









"dnewbie" <run3 myopera.com> 