81 Commits

Author SHA1 Message Date
Joeri van Ruth
9d38aa4722 Use a Display'able token type in the internal tokenizer 2017-10-05 16:54:45 +02:00
Joeri van Ruth
d4669c1226 Change one more () into &'static str 2017-10-05 16:54:45 +02:00
Nicholas Farshidmehr
59d152fa59 Add missing back-tick in tutorial. 2017-08-01 15:54:26 -04:00
Niko Matsakis
735eb8779f update README and tutorial 2017-06-16 15:54:50 -04:00
Niko Matsakis
dcce320a88 bump version number to 0.13.1 2017-06-16 15:49:05 -04:00
Niko Matsakis
ee32a10dd7 tweak text of tutorial; eliminate redundant paragraph 2017-05-03 04:35:02 -04:00
Pawel Wieczorek
523635eacc Fixes after review 2017-04-28 22:12:03 +02:00
Pawel Wieczorek
3ee4b64f5d Aligned tutorial 2017-04-28 20:50:09 +02:00
Pawel Wieczorek
47cb2caa75 Better expanding <> construct
The construct can be expanded in presence of named expressions. It also
works in expanding macro in context of structure construction.

nikomatsakis/lalrpop#226
2017-04-28 20:50:09 +02:00
Niko Matsakis
3037d7637b publish 0.13.0 2017-04-07 06:36: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
c15a0154a1 more minor fixes to tutorial 2017-04-05 09:31:37 -04:00
Niko Matsakis
8842bed1ab remove excess text 2017-04-05 09:27:08 -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
Nathan Lilienthal
5fb5c638bc Remove and ignore generated files. 2017-03-30 13:11:27 -07: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
king6cong
e570f44427 unify dep info
adjust doc cargo.toml so that publish.sh correctly unify dep version
2017-03-06 00:10:53 +08:00
Ahmed Charles
8c18b80841 Upgrade various packages to their latest versions. 2017-03-01 16:57:28 -08:00
Niko Matsakis
0705f422e7 remove DFA codegen and replace with regex-set 2017-02-27 10:12:39 -05:00
Niko Matsakis
826be9555c publish 0.12.5 2017-02-11 08:19:16 +01:00
Niko Matsakis
a3144a1b88 publish 0.12.4 2016-11-29 14:47:11 -05:00
Niko Matsakis
ec63b4e8a7 publish 0.12.3 2016-11-29 13:51:21 -05:00
Niko Matsakis
69acad349d release 0.12.2 2016-11-29 13:51:21 -05:00
Markus Westerlind
7a9b6e7117 Only generate code for error recovery if it is used
Since error recovery requires cloneable tokens we avoid emitting the error recovery code unless it is actually needed. Note that this change still keeps the error terminal in the generated tables.
2016-11-23 19:44:51 +01:00
Markus Westerlind
1fe5cf46c4 Add missing path dependency on the pascal demo 2016-11-22 23:20:04 +01:00
Markus Westerlind
18b179660b Use ! instead of error to indicate error recovery 2016-11-22 23:03:56 +01:00
Markus Westerlind
6bf1c9e940 Store the tokens dropped during error recovery in the produced type 2016-11-22 22:37:19 +01:00
Niko Matsakis
fe854cc7fc update tutorial wording, rm calculator6 2016-11-22 22:36:10 +01:00
Markus Westerlind
0811555dd4 Add basic documentation for error recovery 2016-11-22 22:36:10 +01:00
Markus Westerlind
ea31f3cdda Merge the generation of error recovery as much as possible
The generated code is still duplicated but overall it is a miniscule
amount of code.
2016-11-22 22:36:10 +01:00
Markus Westerlind
80603e1e28 fix: Perform all reductions before shifting in error recovery
This fixes a problem in the newly added calculator7 test where error recovery would remove everything before the comma in `22 * 44 + 66, *3` as there would be no shift at that point. By first reducing the first expression the parser ends up in a state which properly has recovery installed and parsing can resume
2016-11-22 22:36:10 +01:00
Markus Westerlind
e055a9a480 fix: Rename "hello. " to be friendlier for windows 2016-11-18 22:15:16 +01:00
Mako
ae20b9f0b3 Lexer tutorial: Explicit parser input example 2016-08-22 11:42:49 -04:00
Mako
0fb11ddb50 Lexer tutorial: extern can go anywhere in file 2016-08-22 11:32:59 -04:00
Mako
5b19632f2a Lexer tutorial: Iterator impl style fixes 2016-08-22 11:29:56 -04:00
Mako
84636a985f Fix filename mention in lexer_tutorial.md 2016-08-17 18:30:00 -04:00
Mako
5d6608353a Rough draft of lexer tutorial 2016-08-17 17:03:53 -04:00
Niko Matsakis
a02f7c533b fix workspace in Cargo.toml for calculator 2016-08-16 19:44:35 -04:00
Niko Matsakis
0411ca9d48 update version numbers to latest published release 2016-08-05 07:35:19 -04:00
Niko Matsakis
1462b2a649 fix pascal example 2016-08-03 06:29:50 -04:00
Demur Rumed
306714dc51 Replace time with std::time 2016-07-17 03:12:28 +00:00
Ashley Williams
27a3003da4 fix spacing and add trailing commas to calc3 example 2016-06-29 13:55:03 -04:00
Niko Matsakis
78779edfa9 add preliminary Pascal grammar and test harness
Caveats: requires uppercase keywords, cannot handle
comments, somewhat dated grammar
2016-03-22 04:42:17 -04:00
Niko Matsakis
969586b960 Bump the release number to 0.11.0 2016-02-28 05:36:50 -05:00
Niko Matsakis
9e5d0be696 Publish version 0.10 2016-02-19 05:50:21 -05:00
Niko Matsakis
149bfdbb00 repair damage done by public script 2016-01-23 12:35:39 -05:00
Niko Matsakis
eea6b63e71 Release version 0.9.0. 2016-01-23 11:43:36 -05:00