digitalmars.D - D support in Exuberant Ctags 5.8 for Windows
- Gary Willoughby (5/5) Jul 26 2012 I'm looking at this page and trying to download the latest CTags
- dnewbie (3/8) Jul 26 2012 There is --ctags output in Dscanner
- Brian Schott (2/4) Jul 26 2012 But be warned that I haven't tested it on Windows.
- =?ISO-8859-1?Q?Jos=E9_Armando_Garc=EDa_Sancio?= (8/10) Jul 26 2012 Very interesting. Is this Dscanner pluggable? I would be interesting
- Brian Schott (5/20) Jul 26 2012 Dscanner has a tokenizer for D code, so it would not be hard to
- =?ISO-8859-1?Q?Jos=E9_Armando_Garc=EDa_Sancio?= (18/37) Jul 26 2012 wrote:
- Brian Schott (9/63) Jul 26 2012 Something like this:
- p.crimsonsphere (11/11) Sep 24 2012 Hi there.
- ANtlord (9/20) Nov 11 2014 Wake up dead topic! :)
- Sergei Nosov (7/28) Nov 11 2014 I wanted to suggest this link as well (snosov1 is me).
- ANtlord (5/35) Nov 11 2014 I use your project right now, and I must say, that works very
- Gary Willoughby (5/35) Nov 27 2014 There seems to be an effort to resurrect ctags[1] so i've taken
- =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= (4/8) Nov 28 2014 Great news!
- Gary Willoughby (3/12) Nov 28 2014 Believe it or not these are already supported. They are grouped
- Gary Willoughby (4/13) Nov 28 2014 Actually looking at the output it seems aliases are only
- Nick Treleaven (4/8) Dec 03 2014 Great. I'll be working on porting over changes from Geany's D parser,
- Martin Nowak (2/6) Dec 03 2014 How about making turning it into a pull request?
- Nick Treleaven (6/13) Dec 04 2014 It's been merged into fishman/ctags:
- Brian Schott (5/9) Nov 12 2014 The ctags output is implemented in this file:
- Gary Willoughby (4/13) Nov 12 2014 Is there any tutorial articles for Dscanner/libdparse, they look
- ANtlord (4/13) Nov 14 2014 It sounds good. I think, that I can figure out code and patch.
- Jussi Jumppanen (8/11) Nov 12 2014 FYI the Zeus IDE uses ctags and many years ago I updated ctags
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/ExuberantCtagsThere 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/DscannerBut 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/DscannerVery 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: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.There is --ctags output in Dscanner https://github.com/Hackerpilot/DscannerVery 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 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=wrote: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, -JoseOn Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote: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.There is --ctags output in Dscanner https://github.com/Hackerpilot/DscannerVery 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 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: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.On Thursday, 26 July 2012 at 23:51:34 UTC, José Armando García Sancio wrote: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, -JoseOn Thu, Jul 26, 2012 at 3:34 PM, dnewbie <run3 myopera.com> wrote: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.There is --ctags output in Dscanner https://github.com/Hackerpilot/DscannerVery 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
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
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.
Nov 11 2014
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: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.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.
Nov 11 2014
On Tuesday, 11 November 2014 at 18:56:29 UTC, Sergei Nosov wrote:On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote:I use your project right now, and I must say, that works very well. But it does not parse constructors. And it is important. I've created issue in your project about this. I think, it reasonable, talk about this on github.Wake up dead topic! :) On Tuesday, 25 September 2012 at 04:22:13 UTC, p.crimsonsphere wrote: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.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.
Nov 11 2014
On Tuesday, 11 November 2014 at 18:56:29 UTC, Sergei Nosov wrote:On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote:There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsWake up dead topic! :) On Tuesday, 25 September 2012 at 04:22:13 UTC, p.crimsonsphere wrote: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.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.
Nov 27 2014
On Thursday, 27 November 2014 at 09:30:49 UTC, Gary Willoughby wrote:There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsGreat news! It would be great to have support for new alias declarations :)
Nov 28 2014
On Friday, 28 November 2014 at 09:30:18 UTC, Nordlöw wrote:On Thursday, 27 November 2014 at 09:30:49 UTC, Gary Willoughby wrote:Believe it or not these are already supported. They are grouped in with typedefs IIRC.There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsGreat news! It would be great to have support for new alias declarations :)
Nov 28 2014
On Friday, 28 November 2014 at 09:30:18 UTC, Nordlöw wrote:On Thursday, 27 November 2014 at 09:30:49 UTC, Gary Willoughby wrote:Actually looking at the output it seems aliases are only recognised if defined in module scope, then it parses them as a typedef.There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsGreat news! It would be great to have support for new alias declarations :)
Nov 28 2014
On 27/11/2014 09:30, Gary Willoughby wrote:There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsGreat. I'll be working on porting over changes from Geany's D parser, which I've been maintaining for some years. It has a lot of fixes which look like they'll be useful.
Dec 03 2014
On 11/27/2014 10:30 AM, Gary Willoughby wrote:There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsHow about making turning it into a pull request?
Dec 03 2014
On 03/12/2014 23:02, Martin Nowak wrote:On 11/27/2014 10:30 AM, Gary Willoughby wrote:It's been merged into fishman/ctags: https://github.com/fishman/ctags/pull/133 I'll be submitting a supplementary pull, but that shouldn't stop anyone else from contributing who wants to. My understanding of ctags is not that great.There seems to be an effort to resurrect ctags[1] so i've taken the D language support from this patch and applied it to the newly resurrected ctags. [1]: https://github.com/fishman/ctagsHow about making turning it into a pull request?
Dec 04 2014
On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote: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.The ctags output is implemented in this file: https://github.com/Hackerpilot/Dscanner/blob/master/src/ctags.d. It's less than 200 lines long so you should be able to modify it easily.
Nov 12 2014
On Wednesday, 12 November 2014 at 20:33:32 UTC, Brian Schott wrote:On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote:Is there any tutorial articles for Dscanner/libdparse, they look like awesome tools!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.The ctags output is implemented in this file: https://github.com/Hackerpilot/Dscanner/blob/master/src/ctags.d. It's less than 200 lines long so you should be able to modify it easily.
Nov 12 2014
On Wednesday, 12 November 2014 at 20:33:32 UTC, Brian Schott wrote:On Tuesday, 11 November 2014 at 18:44:23 UTC, ANtlord wrote:It sounds good. I think, that I can figure out code and patch. Thank you)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.The ctags output is implemented in this file: https://github.com/Hackerpilot/Dscanner/blob/master/src/ctags.d. It's less than 200 lines long so you should be able to modify it easily.
Nov 14 2014
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.FYI the Zeus IDE uses ctags and many years ago I updated ctags to have some understanding of the D language. Those code changes where made against the last 5.8 version and they can be found here: http://www.zeusedit.com/z300/ctags_src.zip But as I said earlier those changes are quite old, so I don't know how well they work with the current D language.
Nov 12 2014