Commit Graph

1345 Commits

Author SHA1 Message Date
Hackerpilot 35665966fa License headers 2013-07-27 14:52:27 +00:00
Hackerpilot e09051cf1d Added a README. Enhanced CTAGS 2013-07-27 14:49:48 +00:00
Hackerpilot 44b7e7958e XML escape instead of CDATA 2013-07-27 13:45:46 +00:00
Hackerpilot 36d397ac68 AST dump complete\! 2013-07-27 13:33:15 +00:00
Hackerpilot c7424faf56 More AST classes can be printed as XML 2013-07-27 03:12:36 +00:00
Hackerpilot 4a9c8699a5 Closer to having the AST classes completed 2013-07-27 03:12:14 +00:00
Hackerpilot 830bd82ae3 Fixed compile error 2013-07-26 23:44:34 +00:00
Hackerpilot fe1bdef759 CTAGS and AST printing 2013-07-26 23:34:56 -07:00
Hackerpilot 1dd2baf722 Merge pull request #40 from jwhear/master
Fix recursive Ctags
2013-07-26 14:44:33 -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 722f38dd68 Fixed issue #39 2013-07-26 10:31:55 -07:00
Hackerpilot 1aec76fdea Added basic XML output 2013-07-23 01:46:08 +00:00
Hackerpilot a5fd3efdb8 Fixed bad ctags output 2013-07-22 01:41:12 +00:00
Hackerpilot 786d9f2ba6 DDoc cleanup. Implemented a few accept methods on the AST classes 2013-07-19 01:36:37 +00:00
Hackerpilot 2ed0186eaa Added location information to block statement and struct body 2013-07-18 23:56:43 -07:00
Hackerpilot 6e5742167a More work on the dscanner / dcd split 2013-07-17 00:01:54 -07:00
Hackerpilot c83bb59a75 Don't need msgpack in this project anymore 2013-07-15 16:47:13 -07:00
Hackerpilot 9015d47ca8 Moving auto-completion to DCD 2013-07-15 13:02:23 -07:00
Hackerpilot db978177d3 Merge branch 'range-based-lexer' of https://github.com/Hackerpilot/Dscanner into range-based-lexer 2013-07-15 12:55:58 -07:00
Hackerpilot 62b102444e Auto-completion is being moved to the DCD project 2013-07-15 12:50:17 -07:00
Hackerpilot 7ceebb28a3 Basic CTags support based on the AST classes 2013-07-15 02:52:50 +00:00
Hackerpilot eecb4f1e7d I've got a fever and the only cure is more const 2013-07-12 15:31:34 -07:00
Hackerpilot dfd2ab4289 Merge branch 'range-based-lexer' of https://github.com/Hackerpilot/Dscanner into range-based-lexer 2013-07-12 16:17:19 +00:00
Hackerpilot 50ddf8abf8 Fixed an index out of bounds bug. Updated ddoc 2013-07-12 16:17:14 +00:00
Hackerpilot e91316cc9a Optimizes expression parsing. Can now parse phobos 2013-07-11 01:23:40 -07:00
Hackerpilot 9e63e396a4 Fixed lexing of integer dot identifier 2013-07-11 01:22:37 -07:00
Hackerpilot 3f0994c4d2 Getting closer 2013-07-07 22:20:41 -07:00
Hackerpilot 3acdffdc6b Now handles all but 11 files 2013-07-05 04:08:53 +00:00
Hackerpilot 4edd57eb12 Merged 2013-07-04 22:23:04 +00:00
Hackerpilot 0dce698fc3 Fixed another bug 2013-07-04 16:13:09 -07:00
Hackerpilot 8492a39b09 36/57 files in Phobos parse. 2013-07-03 14:26:14 -07:00
Hackerpilot 7c744a07f6 Now able to parse about half of Phobos 2013-07-02 21:39:14 -07:00
Hackerpilot e598033b70 Merge branch 'range-based-lexer' of https://github.com/Hackerpilot/Dscanner into range-based-lexer 2013-07-02 23:47:24 +00:00
Hackerpilot 1e9db2e0b0 Grammar cleanup 2013-07-02 23:47:21 +00:00
Hackerpilot 153e7c3b8e Parser can now parse itself. Also parses std.array 2013-07-01 01:50:54 +00:00
Hackerpilot 95c7c25fc6 Parser now handles more code. Rearranged token struct to fit in 32 bytes 2013-06-30 13:21:10 -07:00
Hackerpilot f7e7cf19ee All non-ASM TODO comments replaced with code. Now the debugging begins 2013-06-29 01:54:52 -07:00
Hackerpilot a12a8a866b Can now parse the ast and tester modules 2013-06-28 02:35:12 -07:00
Hackerpilot 859ddd3d20 Fewer TODO comments 2013-06-27 22:08:46 -07:00
Hackerpilot ad8b4fdeaa Fixed shadowing declaration 2013-06-27 16:27:05 -07:00
Hackerpilot 7a4e588793 Remove crash-prone *expect calls 2013-06-27 16:25:44 -07:00
Hackerpilot 62734e58df Parser is now able to parse the AST module 2013-06-27 02:07:45 -07:00
Hackerpilot 94d4bf7503 Merge branch 'range-based-lexer' of https://github.com/Hackerpilot/Dscanner into range-based-lexer 2013-06-27 01:11:57 -07:00
Hackerpilot 4bde9a4f58 minor change 2013-06-27 01:11:53 -07:00
Hackerpilot 084bc6fd86 Reduced number of TODO comments 2013-06-27 01:08:04 -07:00
Hackerpilot 635ddf79a0 More work on the various expression parsing functions 2013-06-25 01:18:09 -07:00
Hackerpilot 1beef6a901 Unary and Primary expression parsing 2013-06-24 02:33:40 +00:00
Hackerpilot 38105d542f Merged 2013-06-22 17:47:17 +00:00
Hackerpilot 2802eb20a9 More work on the parser 2013-06-22 17:23:30 -07:00