Commit Graph

51 Commits

Author SHA1 Message Date
Nick Sabalausky bd225ba085 Rename 'std.d.*' to 'stdx.d.*' so RDMD can correctly compile Dscanner. 2013-08-01 23:43:02 -04:00
Nick Sabalausky b8e31c0bbb Fixed for 32-bit. 2013-08-01 22:10:55 -04:00
Hackerpilot 86b552b312 Merged the range-based-lexer branch 2013-07-27 15:12:04 +00:00
Hackerpilot e09051cf1d Added a README. Enhanced CTAGS 2013-07-27 14:49:48 +00:00
Hackerpilot fe1bdef759 CTAGS and AST printing 2013-07-26 23:34:56 -07:00
Justin Whear 91c8be08b5 cleanup 2013-07-26 13:32:14 -07:00
Justin Whear 4f32e16e2b Fix recursive Ctags output
Previously using `dscanner --ctags -R <dir>` would output tags without
any filenames, making it pretty useless for navigating in a project.
This was due to all the syntax objects being merged into a single generic
Module, then outputting that module without a filename specified.

This fix does the following:
 * Moves the CTag header output from the Module class to the proper spot in
    main.d
 * Renames `Module.writeCtagsTo` to `getCtags` and now returns string[]
    with the prepared tag lines.
 * The CTag printing functionality in main.d now gathers all tag lines
    from each module, sorts, then outputs.

Note that a more optimal implementation would be fairly straightforward.
Instead of simply returning a string[], `Module.toCtags` could take a
sorted container and insert in sorted order.  main.d could pass this
container to each module in turn, then output the results.
2013-07-26 13:05:17 -07:00
Hackerpilot 1aec76fdea Added basic XML output 2013-07-23 01:46:08 +00:00
Hackerpilot 6e5742167a More work on the dscanner / dcd split 2013-07-17 00:01:54 -07:00
Hackerpilot 9015d47ca8 Moving auto-completion to DCD 2013-07-15 13:02:23 -07:00
Hackerpilot 7ceebb28a3 Basic CTags support based on the AST classes 2013-07-15 02:52:50 +00:00
Hackerpilot a2e0a3bfe2 More progress on the AST clasess. 2013-05-19 12:26:34 -07:00
Hackerpilot 3c8b5c4bc4 fix compile errors by COMMENTING OUT EVERYTHING 2013-03-04 02:01:27 +00:00
Hackerpilot c867b86598 More work on core features 2013-03-03 23:50:52 +00:00
Hackerpilot a9519afee4 refactoring 2013-03-02 15:06:33 +00:00
Hackerpilot c843b0ff73 Accidentally a variable... 2013-02-22 13:31:21 -08:00
Hackerpilot d637e533bc Merged 2013-02-22 13:28:40 -08:00
Hackerpilot 12369feea7 Updated documentation and command line options based on things I'd like to eventually implement 2013-02-22 13:25:22 -08:00
Dmitry Olshansky 0c97b2f573 Redo hash table to avoid array append & GC lock/unlock
Also save hash to speed up in case of collisions & allow future re-hashing.
2013-02-23 00:50:37 +04:00
Dmitry Olshansky e4baf99ca4 avoid creating html-entity AA at start-up - 10% speed up(!)
This is not even remotely funny creating this huge AA
at run-time took around 10% of the whole time to lex std.datetime
2013-02-23 00:00:19 +04:00
Hackerpilot 119c6b917d code cleanup 2013-02-20 22:36:55 -08:00
Hackerpilot 9942ebcf5b More optimizations 2013-02-05 21:45:31 -08:00
Hackerpilot 5a6477f2ee More faster-er. 2013-02-04 16:34:58 -08:00
Hackerpilot 4adaae9e06 Better performance 2013-02-03 01:32:16 +00:00
Hackerpilot 9e0c334276 Massive code refactoring. 2013-02-02 20:13:19 +00:00
Hackerpilot fe7a6bf4b0 Following Phobos style guide more closely 2013-02-01 22:19:40 -08:00
Hackerpilot bd4f5cd85a Do not allocate when lexing keywords and operators 2013-02-01 01:42:20 -08:00
Hackerpilot a5ed81b711 4 times as fast 2013-01-30 02:08:35 +00:00
Hackerpilot 31ffb3f470 compile errors 2013-01-27 14:21:04 -08:00
Hackerpilot 31f59384b9 parser fixes 2013-01-27 14:00:14 -08:00
Hackerpilot 9a6e765335 Special tokens, ddoc, better highlighter colors 2013-01-27 01:09:02 +00:00
Hackerpilot fbfdc37cf5 Moved lexer over to std.d 2013-01-21 17:39:59 +00:00
Hackerpilot 36ff7d043c Tokenizer and highlighter functional 2013-01-19 14:49:24 +00:00
Hackerpilot c429199c1c checking in work on lexer and caching 2013-01-14 15:08:24 -08:00
Hackerpilot ce3ce23099 Added command-line help 2012-11-11 03:42:02 +00:00
John Maschmeyer dd62f275c7 Switched string appends to use appender 2012-10-22 18:46:50 -05:00
John Maschmeyer ae49c5449c Made sloc print when using stdin instead of a file. 2012-10-17 18:13:14 -05:00
John Maschmeyer 12e242ca0f Added stdin as an alternative to a filename for all other modes except for ctags. Ctags requires the filename, so it still requires a filename. 2012-10-17 18:04:48 -05:00
John Maschmeyer 258e10aef6 Cleaned up a few things 2012-10-16 19:35:40 -05:00
John Maschmeyer 224349ac9c If no file is specified for --dotComplete or --parenComplete, read from stdin instead 2012-10-16 18:54:11 -05:00
Hackerpilot c25944e85e Improved autocomplete for pointers 2012-08-26 22:50:28 +00:00
Hackerpilot de1ff9f24a Made more code portable to Windows 2012-06-22 12:41:50 -07:00
Hackerpilot 8775d2e968 use buildPath instead of string concat 2012-06-17 18:43:00 +00:00
Hackerpilot b07e9f94ef Fixed issue #12. Fixed support for autocompleting version and scope statements 2012-06-17 17:19:49 +00:00
Hackerpilot c86ab70b07 Added dot completion support for import statements 2012-06-16 20:45:16 -07:00
Hackerpilot 99dfd0973a Fixed bug with version statement completion 2012-05-04 14:49:09 -07:00
Hackerpilot bbd2ec13ea Added foreach_reverse to list of tokens used for line-of-code count
Alphabetized constants
Cleaned up constant names
Fixed defects with decimal parsing
Eliminated iteration style parameter to lexWhitespace, as it didn't really speed things up.
Added support for imaginary literals
2012-04-27 02:26:34 -07:00
Hackerpilot 79f59bb6f4 Added --ctags option to generate tags file 2012-04-21 17:43:56 -07:00
Roman D. Boiko bd9a5186d8 Updated licensing information (minor) 2012-04-21 21:00:59 +02:00
Hackerpilot b0a677a17c Module declarations. Changed license to Boost 2012-04-21 11:11:30 -07:00