378 Commits

Author SHA1 Message Date
Niko Matsakis
79fc3debbb Merge pull request #80 from nikomatsakis/issue-57-partial-rs-file
Buffer output and only write to .rs file if successful
2016-02-19 05:04:42 -05:00
Niko Matsakis
a9e03641a2 Update .rs files for tests to not have comments 2016-02-19 04:26:49 -05:00
Niko Matsakis
07fa481cf8 Add fix for #57 to release notes. 2016-02-19 04:26:32 -05:00
Niko Matsakis
088f14d674 Kill another unused import. 2016-02-19 04:25:42 -05:00
Niko Matsakis
1ccbb5685d Build the temporary result into a buffer first
This avoids incomplete files. Fixes #57.
2016-02-19 04:24:39 -05:00
Niko Matsakis
311d5d2d68 Kill some unused imports 2016-02-19 04:23:51 -05:00
Niko Matsakis
50832ba465 Disable comments unless explicitly enabled
I doubt anyone is reading these
2016-02-19 04:16:07 -05:00
Niko Matsakis
a687c9175d Merge pull request #79 from nikomatsakis/lalrpop-executable
Update release notes.
2016-02-19 04:10:03 -05:00
Niko Matsakis
3f474605f1 Update release notes. 2016-02-19 04:09:29 -05:00
Niko Matsakis
97af9284fc Merge pull request #77 from nikomatsakis/lalrpop-executable
Move the LALRPOP executable into the LALRPOP crate.
2016-02-19 04:06:25 -05:00
Niko Matsakis
c1cdf0dac7 Fix travis.yml 2016-02-18 20:43:21 -05:00
Niko Matsakis
3eb2feed91 Move the LALRPOP executable into the LALRPOP crate. 2016-02-18 20:42:24 -05:00
Niko Matsakis
fb033680bb Merge pull request #74 from nikomatsakis/explain-lr-failure
Explain lr failures better
2016-02-18 04:08:18 -05:00
Niko Matsakis
2ce1093314 Mention new error messages in the release notes. 2016-02-18 04:08:02 -05:00
Niko Matsakis
d97eb6292c Update .travis.yml 2016-02-17 20:42:10 -05:00
Niko Matsakis
2522961357 remove unnecessarily academic paragraph 2016-02-17 20:22:03 -05:00
Niko Matsakis
f125886c87 Merge branch 'master' of github.com:nikomatsakis/lalrpop into explain-lr-failure 2016-02-17 19:53:46 -05:00
Niko Matsakis
279929f0b8 Finalize switch to unicode box drawing characters 2016-02-17 16:54:19 -05:00
Niko Matsakis
201d57328f use unicode box-drawing characters 2016-02-17 14:12:38 -05:00
Niko Matsakis
35edb6b306 Say Hint: more 2016-02-17 11:00:43 -05:00
Niko Matsakis
815b651372 add "Help" message, other tweaks 2016-02-17 10:57:55 -05:00
Niko Matsakis
1d80b3ff1d write builder docs, add begin_ naming convention 2016-02-17 09:11:07 -05:00
Niko Matsakis
3ddc6e3d8a Fix a ton of bugs 2016-02-17 09:03:32 -05:00
Niko Matsakis
5f4d755e97 remove some dead code 2016-02-17 05:07:04 -05:00
Niko Matsakis
f4a51154bc Get everything building with the new messaging infrastructure 2016-02-17 05:04:04 -05:00
Niko Matsakis
397b7d3877 Promote ASCII Canvas out of the message module 2016-02-16 07:08:33 -05:00
Niko Matsakis
a499d89b41 Message infrastructure is now working (with tests) 2016-02-16 06:48:51 -05:00
Niko Matsakis
4b1c0c5be3 write up a builder, clean up the approach to wrap, knit everything together 2016-02-16 05:34:23 -05:00
Niko Matsakis
d1e34004ae Implement message infrastructure 2016-02-15 18:35:46 -05:00
Niko Matsakis
d788c2fbcf Introduce resizing canvas views, word wrapping 2016-02-15 06:10:29 -05:00
Niko Matsakis
d57c7ee9ed Begin restructuring message infrastructure 2016-02-15 05:01:11 -05:00
Niko Matsakis
4d89280c8b Fix extra padding in 1-symbol reductions
We were not taking into account the padding we had added on previous
iterations, and so we kept adding more and more for each reduction.
2016-02-14 21:30:35 -05:00
Niko Matsakis
942ef00e9d Build lalrpop-exe too 2016-02-14 20:48:32 -05:00
Niko Matsakis
fee1dcb68c Remove dead code, prefer shorter examples 2016-02-14 20:48:13 -05:00
Niko Matsakis
ca4c362cb3 Replace the old backtrace code with the new, graph-based version 2016-02-14 13:30:26 -05:00
Niko Matsakis
cc6ce03860 Fix bug where we added unnecessary epsilon edges 2016-02-14 13:09:28 -05:00
Niko Matsakis
7d03bac0e7 Generate Example from path iterator 2016-02-14 13:02:21 -05:00
Niko Matsakis
dc2ac98367 Make trace graph iter push target node on stack
This means full state can be reconstructed in between iterations.
2016-02-14 06:39:16 -05:00
Niko Matsakis
97df75a5a1 Harmonize the documentation for trace graphs
Also tweak slightly how the edges are represented to make them more
consistent.
2016-02-14 06:30:19 -05:00
Niko Matsakis
c4e4fd2b67 Extend trace graphs to have both prefix/suffix 2016-02-13 21:34:25 -05:00
Niko Matsakis
b10dc27980 add unit tests for trace_graph 2016-02-12 05:53:26 -05:00
Niko Matsakis
495793075b Implement trace graph path enumeration 2016-02-12 05:32:41 -05:00
Niko Matsakis
cb7fd0b19c WIP graph approach working 2016-02-11 07:57:23 -05:00
Niko Matsakis
2c908bace8 Reorganize lr1::backtrace into lr1::trace::...
Split up the different kinds of tracing (shift tracing is not yet
rewritten) and move them into a common module.
2016-02-10 05:53:56 -05:00
Niko Matsakis
07e8e45ab8 Massively reorganize LR1 modules
Move all of the lr1 specific data structures into `core`, which means I
can make them pub while keeping the lr1/mod interface fairly clean.
2016-02-10 05:37:50 -05:00
Niko Matsakis
0738e1ed16 Change graph to labeled edges. 2016-02-10 04:57:41 -05:00
Niko Matsakis
01137f51f3 Remove Debug output from inner core loop 2016-02-09 09:39:21 -05:00
Niko Matsakis
e96361d7a6 Introduce a cache in place of the old stack 2016-02-09 08:16:11 -05:00
Niko Matsakis
e9879b95e9 Use LookaheadSet in the backtrace computation too 2016-02-09 05:36:18 -05:00
Niko Matsakis
06bb6e7c82 Use the new LookaheadSet in the first set computation 2016-02-09 05:22:30 -05:00