April 24, 2014 Re: DScanner is ready for use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | 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 care about C-style declarations more than I do, and yet they still don't care enough to implement support for them and create a pull request. Sorry, I understand the feeling, I was just trying to help a little, underlying a missing part in DScanner. There are several open source projects I report bugs to, but I don't sent patched to. Bye, bearophile |
April 24, 2014 Re: DScanner is ready for use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | 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
> * Syntax highlights code in HTML format
> * Provides more meaningful "line of code" count than wc
> * Counts tokens in a source file
>
> The lexer/parser/AST are located in the "std/d" directory in the repository. These files should prove useful to anyone else working on D tooling.
>
> https://github.com/Hackerpilot/Dscanner
>
> Aside: the D grammar that I reverse-engineered can be located here: https://rawgithub.com/Hackerpilot/DGrammar/master/grammar.html
If I do a styleCheck on a source file that contains a BOM, I get the following
message:
test.d(1:14)[error]: Expected ; instead of .
|
April 26, 2014 Re: DScanner is ready for use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | 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 grammar that I reverse-engineered can be located here: https://rawgithub.com/Hackerpilot/DGrammar/master/grammar.html Thanks for making this available! Very useful. |
Copyright © 1999-2021 by the D Language Foundation