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
Niko Matsakis
287d6f6030
Add a new LookaheadSet, currently unused
2016-02-09 04:41:41 -05:00
Niko Matsakis
28118fa2e3
Try to integrate styles and write some output. Needs work.
2016-02-08 05:59:58 -05:00
Niko Matsakis
7430a65d45
Add capability of ANSI formatting to ASCII canvas
2016-02-08 04:59:45 -05:00
Niko Matsakis
3372e0ce9d
Move the cursor into a separate field rather than making it an item
2016-02-08 04:14:12 -05:00
Niko Matsakis
47d2a62abc
Add error classification and use several examples.
2016-02-07 20:26:27 -05:00
Niko Matsakis
4103c265ad
WIP
2016-02-06 20:47:10 -05:00
Niko Matsakis
013b7f9ae8
Test that we can enumerate/paint the examples.
2016-02-06 05:33:02 -05:00
Niko Matsakis
8b51ec251d
Fix the handling of the right-hand-side
2016-02-05 08:18:42 -05:00
Niko Matsakis
76399fc667
Tweak more
2016-02-05 06:09:29 -05:00
Niko Matsakis
a9b8f7c395
WIP example lengths
2016-02-04 06:26:01 -05:00
Niko Matsakis
de769d0ca8
Play with module structure.
2016-02-03 13:10:50 -05:00
Niko Matsakis
f4cc3730b4
Expand example
2016-02-03 11:11:14 -05:00
Niko Matsakis
04c07929d3
Merge pull request #70 from shahn/snapshot-deps
...
Update some snapshot dependencies
2016-02-03 05:30:27 -05:00
Niko Matsakis
176f66f9dc
Change backtraces to be computed over LR(0) items, and merge parent
...
backtraces. The result is much cleaner. :)
2016-02-03 05:28:59 -05:00
Niko Matsakis
093ac9a96c
Add a case that handles cycles, and an example of a bad grammar
2016-02-03 04:23:51 -05:00
Sebastian Hahn
697fa6533c
Update some snapshot dependencies
...
This was possible since e70b23208ac27f93a914fea77ec158c47ab9a389 and
a8155ad01cf575b99b9be08820bfb8ae9bdf337e and was unfortunately forgotten
in 53c7e620c90f38204aea5ec5ad6a4a7598a8a3ec :)
2016-02-03 07:05:52 +01:00
Niko Matsakis
22d3c904a9
Implement backtrace
2016-02-02 20:11:16 -05:00
Niko Matsakis
7b7fee97aa
Merge pull request #66 from oconnor0/master
...
Unset read only on generated rust file before removing it to fix build failure on Windows
2016-02-02 13:08:11 -05:00
Matthew O'Connor
e8a5a4db8a
Remove unnecessary parens in if.
2016-02-02 10:59:00 -07:00
Niko Matsakis
52e7208239
WIP
2016-02-02 04:53:53 -05:00
Niko Matsakis
e45d27bc3d
Collect the states when failure occurs in LR(1) construction
2016-02-02 04:53:53 -05:00
Niko Matsakis
e6b057f551
Add an execute (lalrpop-exe
) that one can use to run LALRPOP manually.
2016-02-02 04:53:53 -05:00
Niko Matsakis
6417391917
Fix tests with sessions, add debug output by default
2016-02-01 09:11:07 -05:00
Niko Matsakis
6b43dbce28
Add a lalrpop-exe command that you can use to run LALRPOP manually.
2016-02-01 05:24:11 -05:00
Niko Matsakis
c7aeb106ad
Add a Session
object and thread some logging through LALRPOP.
2016-02-01 05:24:04 -05:00
Matthew O'Connor
b7ce5bf4ff
Verify that generated rust file exists before changing permissions.
2016-01-30 15:39:13 -07:00
Matthew O'Connor
51e2dabdc0
Unset read only on generated rust file before removing it to fix build failure on Windows ( #53 )
2016-01-30 08:54:58 -07:00
Niko Matsakis
20b2ee8e56
Merge pull request #64 from nikomatsakis/relicense
...
Remove outdated LICENSE file.
2016-01-28 05:43:06 -05:00
Niko Matsakis
6bc1ebb6e8
Remove outdated LICENSE file.
2016-01-28 05:42:30 -05:00
Niko Matsakis
a5e107a869
Merge pull request #61 from nikomatsakis/relicense
...
Switch license to MIT/Apache2 instead of Unlicense
2016-01-28 05:41:35 -05:00
Niko Matsakis
728654dfa2
Switch license to MIT/Apache2 instead of Unlicense, in an effort to be
...
more uniform with the rest of the Rust ecosystem, and to evade the
various legal quandries associated with the concept of "public domain".
2016-01-24 04:52:05 -05:00
Niko Matsakis
b311a988c2
Merge pull request #60 from nikomatsakis/release-0.9.0
...
Release 0.9.0 and begin version 0.10.
2016-01-23 13:48:26 -05:00
Niko Matsakis
149bfdbb00
repair damage done by public script
2016-01-23 12:35:39 -05:00
Niko Matsakis
f0e0c2a91c
fix bug in publish script that messed up dependencies
2016-01-23 12:35:30 -05:00
Niko Matsakis
a1f343039c
add calculator tutorial to the travis config
2016-01-23 12:35:17 -05:00
Niko Matsakis
01ae27afe8
Bump to version 0.10.0 (in progress).
2016-01-23 11:45:29 -05:00
Niko Matsakis
eea6b63e71
Release version 0.9.0.
2016-01-23 11:43:36 -05:00