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
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
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
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
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,
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
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
*
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
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
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
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
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
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
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:
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:
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
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
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
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
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
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
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
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?
Also looks like enumBody supports multiple commas with nothing
between them, but dmd doesn't support it. Sould be
'{' enumMember (',' enumMember)* ','? '}'
And arrayLiteral should be
'[' (assignExpression (',' assignExpression)* ','?)? ']'
The same for arrayInitializer:
'[' (arrayMemberInitialization (',' arrayMemberInitialization)*
','?)? ']'
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:
Well, knowing the lean and mean way dmd is written, alias
initializer can be a semantical error rather than syntactical.
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 ;)
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
*
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
31 matches
Mail list logo