Thread overview | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 26, 2012 D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
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 |
July 26, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | 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 |
July 26, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to dnewbie | 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.
|
July 26, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to dnewbie | 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
|
July 26, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to José Armando García Sancio | 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.
|
July 27, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | 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 |
July 27, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to José Armando García Sancio | 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. |
September 25, 2012 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | 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. |
November 11, 2014 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to p.crimsonsphere | Wake up dead topic! :) On Tuesday, 25 September 2012 at 04:22:13 UTC, p.crimsonsphere wrote: > 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. If it is actually, you can use that https://github.com/snosov1/ctags-d. I want to ask about Dscanner. Does it provide same formats as ctags. I use ctags with --excmd=pattern --fields=nksSa and output with them is different of Dscanner's output with key --ctags. Sorry, if my english is not clear. |
November 11, 2014 Re: D support in Exuberant Ctags 5.8 for Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote:
> Wake up dead topic! :)
>
> On Tuesday, 25 September 2012 at 04:22:13 UTC, p.crimsonsphere wrote:
>> 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.
>
> If it is actually, you can use that https://github.com/snosov1/ctags-d.
I wanted to suggest this link as well (snosov1 is me).
It is ctags 5.8 with the aforementioned patch applied and few other fixes on top.
It's not perfect, but works reasonable.
I didn't use Dscanner for that functionality much, but I expect it to have better quality.
|
Copyright © 1999-2021 by the D Language Foundation