Re: DScanner is ready for use

2014-04-26 Thread via Digitalmars-d-announce
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: * Prints out a complete AST of a source file in XML format. Neat feature! I met two bugs that need some love: https://github.com/Hackerpilot/Dscanner/issues/168 https://github.com/Hackerpilot/Dscanner/issues/169 Aside: the D

Re: DScanner is ready for use

2014-04-24 Thread Brian Schott via Digitalmars-d-announce
On 04/22/2014 07:08 PM, bearophile wrote: This code gives four problems to Dscanner: void main() { auto x = float(5); This is not valid. DMD and the grammar spec both do not allow this. auto r = 1. + 2; Fixed. (https://issues.dlang.org/show_bug.cgi?id=12623) int items[5]; I

Re: DScanner is ready for use

2014-04-24 Thread bearophile via Digitalmars-d-announce
Brian Schott: This is not valid. DMD and the grammar spec both do not allow this. This was changed weeks ago. Now D accepts that code. int items[5]; I don't support C-style declarations. DMD doesn't really support them either. (https://issues.dlang.org/show_bug.cgi?id=953) Then I

Re: DScanner is ready for use

2014-04-24 Thread Brian Schott via Digitalmars-d-announce
On Thursday, 24 April 2014 at 21:36:24 UTC, bearophile wrote: This was changed weeks ago. Now D accepts that code. You want tooling to support language features that aren't released? Then I suggest DScanner to support the half-C-declarations, because D compilers digests them just fine and

Re: DScanner is ready for use

2014-04-24 Thread Dicebot via Digitalmars-d-announce
On Thursday, 24 April 2014 at 22:19:29 UTC, Brian Schott wrote: Then I suggest DScanner to support the half-C-declarations, because D compilers digests them just fine and they are very common in D code you will find in the wild. A code analyzer has to accept the real world code people write,

Re: DScanner is ready for use

2014-04-24 Thread bearophile via Digitalmars-d-announce
Brian Schott: You want tooling to support language features that aren't released? I think it's nice for a language tool to try to follow closely the improvements in the language. But you are right, the update rhythms of DScanner are left to you. Several people have indicated that they

Re: DScanner is ready for use

2014-04-24 Thread Jos van Uden via Digitalmars-d-announce
On 28-7-2013 0:27, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules imported by a source file *

Re: DScanner is ready for use

2014-04-22 Thread bearophile via Digitalmars-d-announce
Brian Schott: DScanner is a tool for analyzing D source code. It has the following features: ... https://github.com/Hackerpilot/Dscanner I have just compiled it on Windows32 and tried it. The compilation using the given bat has failed to link: OPTLINK (R) for Win32 Release 8.00.15

Re: DScanner is ready for use

2013-08-02 Thread Tofu Ninja
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules

Re: DScanner is ready for use

2013-08-02 Thread Brian Schott
On Friday, 2 August 2013 at 13:52:14 UTC, Tofu Ninja wrote: Any idea on when we might see json output(i am not a fan of xml)? Roughly the same time somebody submits a pull request. I'm currently focusing my spare time on DCD, so the JSON output will happen after I'm able to get

Re: DScanner is ready for use

2013-08-02 Thread Tofu Ninja
On Friday, 2 August 2013 at 18:01:01 UTC, Brian Schott wrote: On Friday, 2 August 2013 at 13:52:14 UTC, Tofu Ninja wrote: Any idea on when we might see json output(i am not a fan of xml)? Roughly the same time somebody submits a pull request. I'm currently focusing my spare time on DCD, so

Re: DScanner is ready for use

2013-08-02 Thread Brian Schott
On Friday, 2 August 2013 at 18:12:15 UTC, Tofu Ninja wrote: I will look into adding it my self if I get some time, but I don't think I will need to use this for a while. For what I want it for, there is a lot of legwork to be done before I get around to needing this. The XML output is

Re: DScanner is ready for use

2013-08-01 Thread Rory McGuire
okay, I look forward to its release. I'm really looking forward to code completion in Sublime Text 2 On Wed, Jul 31, 2013 at 10:44 PM, Brian Schott briancsch...@gmail.comwrote: On Wednesday, 31 July 2013 at 18:41:17 UTC, Justin Whear wrote: On Wed, 31 Jul 2013 20:30:17 +0200, Rory McGuire

Re: DScanner is ready for use

2013-08-01 Thread Nick Sabalausky
On Sun, 28 Jul 2013 00:27:34 +0200 Brian Schott briancsch...@gmail.com wrote: DScanner is a tool for analyzing D source code. [...] When I try to compile it (DMD 2.063.2 Win32) I get this: C:\Users\Nick\AppData\Roaming\dvm\compilers\dmd-2.063.2\bin\..\src\phobos\std\array.d(321): Error:

Re: DScanner is ready for use

2013-08-01 Thread Nick Sabalausky
On Thu, 1 Aug 2013 21:52:00 -0400 Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: On Sun, 28 Jul 2013 00:27:34 +0200 Brian Schott briancsch...@gmail.com wrote: DScanner is a tool for analyzing D source code. [...] When I try to compile it (DMD 2.063.2 Win32) I get this:

Re: DScanner is ready for use

2013-07-31 Thread Rory McGuire
Any chance of you turning this into a daemon? Something likt margo or gocode? On 29 Jul 2013 11:05, qznc q...@web.de wrote: On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete

Re: DScanner is ready for use

2013-07-31 Thread Justin Whear
On Wed, 31 Jul 2013 20:30:17 +0200, Rory McGuire wrote: Any chance of you turning this into a daemon? Something likt margo or gocode? The author has another project here: https://github.com/Hackerpilot/DCD

Re: DScanner is ready for use

2013-07-31 Thread Brian Schott
On Wednesday, 31 July 2013 at 18:41:17 UTC, Justin Whear wrote: On Wed, 31 Jul 2013 20:30:17 +0200, Rory McGuire wrote: Any chance of you turning this into a daemon? Something likt margo or gocode? The author has another project here: https://github.com/Hackerpilot/DCD I wouldn't bother

Re: DScanner is ready for use

2013-07-29 Thread qznc
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules

Re: DScanner is ready for use

2013-07-28 Thread qznc
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules

Re: DScanner is ready for use

2013-07-28 Thread Dicebot
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules

Re: DScanner is ready for use

2013-07-28 Thread Jacob Carlborg
On Sunday, 28 July 2013 at 12:49:34 UTC, Dicebot wrote: Awesome! I hope it won't be forgotten by the time I need it :) By the way, how far is that std.d.* stuff from ongoing Phobos inclusion review? I suppose currently it does not do any semantical analysis? How hard it would be to

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
On Saturday, 27 July 2013 at 22:27:35 UTC, Brian Schott wrote: Aside: the D grammar that I reverse-engineered can be located here: https://rawgithub.com/Hackerpilot/DGrammar/master/grammar.html Does arrayLiteral support stray comma?

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
Also looks like enumBody supports multiple commas with nothing between them, but dmd doesn't support it. Sould be '{' enumMember (',' enumMember)* ','? '}'

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
And arrayLiteral should be '[' (assignExpression (',' assignExpression)* ','?)? ']'

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
The same for arrayInitializer: '[' (arrayMemberInitialization (',' arrayMemberInitialization)* ','?)? ']'

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
Like typedef alias supports multiple declarators. aliasDeclaration: 'alias' (aliasInitializer (',' aliasInitializer)* | type declarator (',' declarator)*) ';' Also declarator supports initializer, but alias doesn't. declarator: Identifier ('=' initializer)? ; alias int a=1; Error:

Re: DScanner is ready for use

2013-07-28 Thread Kagamin
Well, knowing the lean and mean way dmd is written, alias initializer can be a semantical error rather than syntactical.

Re: DScanner is ready for use

2013-07-28 Thread Dicebot
On Sunday, 28 July 2013 at 13:44:03 UTC, Jacob Carlborg wrote: I don't think it's necessary for semantic analysis to be included in Phobos. It's enough to start with a lexer, then later add a parser and semantic analysis. Those were 2 separate not related questions ;)

Re: DScanner is ready for use

2013-07-28 Thread dennis luehring
Am 28.07.2013 00:27, schrieb Brian Schott: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules imported by a source file *

Re: DScanner is ready for use

2013-07-27 Thread Nick Sabalausky
On Sun, 28 Jul 2013 00:27:34 +0200 Brian Schott briancsch...@gmail.com wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a