879 Commits

Author SHA1 Message Date
Niko Matsakis
cd39586c5d Merge pull request #222 from ravenexp/rec-ascent-priv-states
Make action and state functions private.
2017-04-17 09:13:58 -04:00
Minijackson
4ecd594e51
Add a test for a nicer pull request!
It's true because it rhymes
2017-04-17 14:18:19 +02:00
Minijackson
1b206d1665
Add user uses in generated mod intern_token (should fix #113) 2017-04-17 14:04:41 +02:00
Sergey Kvachonok
49e71cc3b1 Make action and state functions private.
Generated recursive ascent parser contains public functions
for every state and every action.
Only the top level state function(s) must be public.
2017-04-13 13:56:46 +03:00
Niko Matsakis
0f25622dbc add support for char-literal patterns 2017-04-12 05:32:07 -04:00
Niko Matsakis
3037d7637b publish 0.13.0 v0.13.0 2017-04-07 06:36:53 -04:00
Niko Matsakis
2d3de75fcf Merge pull request #216 from nikomatsakis/release-0.13.0
Release 0.13.0
2017-04-07 06:28:25 -04:00
Niko Matsakis
2f1fc3c5ae stop tracking match_section.rs 2017-04-07 05:56:53 -04:00
Niko Matsakis
fb9b843ed2 move to version 0.13.0 2017-04-07 05:55:42 -04:00
Niko Matsakis
30570e4cd3 update version.sh script to affect doc contents 2017-04-07 05:52:18 -04:00
Niko Matsakis
94dda2e852 update release notes for 0.13 2017-04-07 05:45:06 -04:00
Niko Matsakis
c15a0154a1 more minor fixes to tutorial 2017-04-05 09:31:37 -04:00
Niko Matsakis
834acce37e Merge pull request #215 from nikomatsakis/match-tutorial
remove excess text
2017-04-05 09:30:16 -04:00
Niko Matsakis
8842bed1ab remove excess text 2017-04-05 09:27:08 -04:00
Niko Matsakis
3f0bb90222 Merge pull request #214 from nikomatsakis/match-tutorial
extend the tutorial to explain lexing vs parsing
2017-04-05 09:25:20 -04:00
Niko Matsakis
ece26d35b4 Merge pull request #213 from wieczyk/report_file
Report generation
2017-04-04 10:22:52 -04:00
Niko Matsakis
df0292aa64 run rustfmt 2017-04-04 10:22:05 -04:00
Niko Matsakis
e2ca68cdea add some comments into the LALRPOP file 2017-04-04 06:29:14 -04:00
Niko Matsakis
248c752f62 extend the tutorial to explain lexing vs parsing 2017-04-04 06:24:38 -04:00
Pawel Wieczorek
382491d596 Report generation
Bison and Menhir are able to produce very nice and helpful reports about constructed automatons. I believe it could be also very useful for LALRPOP users.  I would like to have it during work on lane-table.

nikomatsakis/lalrpop#204
2017-04-04 00:24:59 +02:00
Niko Matsakis
5cb728e5bb Merge pull request #212 from nikomatsakis/fix-lane-table-unit-test
Fix lane table unit test
2017-04-03 11:22:01 -04:00
Niko Matsakis
5d30989369 ignore match_section.rs 2017-04-03 05:55:57 -04:00
Niko Matsakis
fa31cf265c stop using test.sh and instead use cargo test --all 2017-04-03 05:54:43 -04:00
Niko Matsakis
3b3c1719f7 break apart the unit tests into two 2017-04-03 05:54:43 -04:00
Niko Matsakis
5c0d15b40f lane table: add EOF as lookahead when reducing start terminal 2017-04-03 05:54:43 -04:00
Niko Matsakis
c489c805d0 print the set of things we are interpreting
makes debugging easier
2017-04-03 05:54:43 -04:00
Niko Matsakis
f924cb857d in Lane Table mode, we use fewer states 2017-04-03 05:54:43 -04:00
Niko Matsakis
dc08834f3a only add ! to the set of terminals of we use it 2017-04-03 05:54:43 -04:00
Niko Matsakis
007d6a810e Merge pull request #211 from nixpulvis/ignore-doc-generated-files
Remove and ignore generated files.
2017-04-01 21:10:58 -04:00
Nathan Lilienthal
5fb5c638bc Remove and ignore generated files. 2017-03-30 13:11:27 -07:00
Niko Matsakis
d17ea101c7 Merge pull request #206 from tildeio/match
`match` declaration for controlling precedence in the generated tokenizer
2017-03-30 05:24:33 -06:00
Niko Matsakis
6ee7355ec4 add various match tests 2017-03-30 05:18:08 -06:00
Niko Matsakis
4ebd265f86 silence some warnings that were driving me crazy 2017-03-30 05:18:08 -06:00
Niko Matsakis
243e9983cf add negative parsing to existing test 2017-03-30 05:18:08 -06:00
Niko Matsakis
e0725251d0 cleanup the fields in token-check further 2017-03-30 05:18:07 -06:00
Niko Matsakis
6fe7377c22 revamp how we tokenck and store the InternToken
In `InternToken`, we now coallesce everything into one
`Vec<MatchEntry>`, rather than using a vector and a map.  In the
token-check code, the various fields associated with a match are moved
into a struct.
2017-03-30 05:18:07 -06:00
Niko Matsakis
b75669c8d6 make the map/catch-all non-optional in validator 2017-03-30 05:18:07 -06:00
Niko Matsakis
61c2ce1522 use TerminalLiteral instead of TerminalString where appropriate
This avoids a lot of unwraps and panics. I did copy the precedence code
but I plan to refactor that shortly.
2017-03-30 05:18:07 -06:00
Peter Wagenet
9c1317508e implement customizable match section 2017-03-30 05:17:43 -06:00
Niko Matsakis
6f12cfe41b Merge pull request #208 from wieczyk/issue203_enable_constructing_lr1_states_via_envvar
Enabling lane-table-algorithm via environment variable
2017-03-29 07:50:57 -06:00
Pawel Wieczorek
8a0fae86b3 Enabling lane-table-algorithm via environment variable 2017-03-28 19:40:48 +02:00
Niko Matsakis
e9a06edd85 Merge pull request #207 from tildeio/upgrade-regex-syntax
Upgrade regex-syntax
2017-03-28 05:19:13 -04:00
Niko Matsakis
9e529089d3 convert panics into Err results for byte-based regex
We don't currently support byte-based regular expressions,
though it does seem like something that would be potentially
useful in the future.
2017-03-28 04:44:03 -04:00
Peter Wagenet
b12643d413 Upgrade regex-syntax
This fixes a bug where some regexes are not correctly printed as string literals.
2017-03-27 18:54:57 -07:00
Niko Matsakis
b78b2aaaa1 Merge pull request #198 from nikomatsakis/lane-table-algorithm
Further progress towards lane table algorithm
2017-03-23 06:09:21 -04:00
Niko Matsakis
301a2a23e2 remove unstable features 2017-03-23 05:59:05 -04:00
Niko Matsakis
dfb4040da1 Merge pull request #199 from federicomenaquintero/master
Fix for the README.md, and a small documentation fix
2017-03-23 05:16:58 -04:00
Federico Mena Quintero
c2118466de tutorial.md: Fix grammar and make a picture more legible 2017-03-21 21:02:38 -06:00
Federico Mena Quintero
c6bfeb80c3 tutorial: Use the same suggested version for the regex crate as in the toplevel README.md 2017-03-21 20:35:17 -06:00
Federico Mena Quintero
b64b1480b5 README.md: Mention a version of the regex crate that actually exists 2017-03-21 20:34:52 -06:00