112 Commits

Author SHA1 Message Date
Seo Sanghyeon
bdde7d5c9b Update tutorial for Cargo build script change 2018-03-29 23:56:25 +05:30
Markus Westerlind
7c0dba9928 Don't follow lalrpop's version for the example Cargo.toml
No reason for an example Cargo.toml file to follow the lalrpop version
and this makes it easier to update version numbers with the version.sh
script
2018-03-24 18:15:21 +05:30
Markus Westerlind
06caa3e7b4
Merge pull request #346 from lalrpop/version_0.15_tutorial
update tutorials
2018-03-24 12:55:31 +01:00
Niko Matsakis
f4d447d569 update tutorials 2018-03-23 04:51:56 -04:00
Niko Matsakis
7adaad0818
Merge pull request #340 from Marwes/version_0.15
Prepare the 0.15 release
2018-03-22 13:43:02 -04:00
Bruce Mitchener
df6fd07656 Update docopt dependency.
This also requires switching from `rustc-serialize` to `serde`
for the arguments handling, so the dependency on `rustc-serialize`
has been removed and a dependency on `serde` has been added.
2018-03-21 20:59:08 +05:30
Markus Westerlind
cda39bf5e8
Merge pull request #342 from mbrubeck/docs
[doc] Minor fix for some build script examples
2018-03-19 18:56:56 +01:00
Markus Westerlind
1135de29ff Version 0.15.0 2018-03-18 12:57:34 +01:00
Matt Brubeck
a6be9de7cf [doc] Minor fix for some build script examples 2018-03-17 13:59:12 -07:00
Markus Westerlind
daec42518f fix: Allow lalrpop parsers to be used with include!
Due to https://github.com/rust-lang/rust/issues/18810 (https://github.com/rust-lang/rfcs/issues/752)
it is not possible to have an inner attribute in a file that gets
used with `include!`.

Specifying the attribute on each parser module is less precise and more
duplication but it will at least work for that case. If a user wants to
apply the rustfmt on the whole module they can still add an outer
attribute manually as well.
2018-03-17 21:25:06 +01:00
Phlosioneer
8b35e24b1a
Fix typo in 002_paren_numbers.md 2018-03-08 03:25:15 -05:00
Brendan Zabarauskas
701d609500 Run rustfmt on entire codebase 2018-03-01 16:50:36 +11:00
Bruce Mitchener
896ab62e03 doc: Fix typo. 2018-02-28 14:13:11 +05:30
Ahmed Charles
3f6bd2a00e Change parse_X to XParser::parse. 2018-02-15 10:25:29 +00:00
Anthony Deschamps
9e765a767e Correct a typo in the tutorial. 2018-02-14 01:06:41 -08:00
Ahmed Charles
c1e49ff369 Add toml as the language for Cargo.toml example. 2018-02-08 03:58:44 +00:00
Ahmed Charles
b4de8d47a0 Fix warning when building calculator. 2018-02-07 15:00:38 +00:00
Niko Matsakis
7d7be8a016 update to use docs.rs link for Configuration 2018-02-05 05:48:04 -05:00
Niko Matsakis
1ddf240b2e move the setup instrutions out of README and into the book 2018-02-05 04:31:22 -05:00
Niko Matsakis
742fa61cae tweak authorship and make the build-doc script run on mac 2018-02-04 06:41:49 -05:00
John-John Tedro
5aebcc1905 Adjust links to static resources and introduce build script for doc 2018-01-31 12:57:25 +01:00
John-John Tedro
c2719c4b7e Add contributors.md 2018-01-31 12:34:59 +01:00
John-John Tedro
5b8cf548f7 Convert existing documentation to mdbook 2018-01-31 12:34:59 +01:00
johannes
71df807949 update version strings in README.md and doc/tutorial.md to 0.14.0 2018-01-24 17:25:28 +01:00
Niko Matsakis
df38c3e2ae update all version numbers to 0.14.0 2018-01-24 05:53:03 -05:00
Niko Matsakis
a83d4f9cce
Merge pull request #274 from pyfisch/patch-1
Add example with funky expression and tupels
2018-01-24 05:19:43 -05:00
Pyfisch
e3d1370089
Add missing comma in tutorial
closes #219
2017-10-29 20:57:24 +01:00
Pyfisch
f7e83a3f4a
Add example with funky expression and tupels
closes #83
2017-10-29 18:48:54 +01:00
Niko Matsakis
01ccd43789 Merge pull request #254 from joerivanruth/transform-parse-error
Make ParseError Displayable
2017-10-15 05:47:15 -04:00
Joeri van Ruth
5c7f81b821 Move internal token to __intern_token.
Re-export it at the toplevel because client visible types
use it.
2017-10-05 16:54:45 +02:00
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
Michael Howell
424e22c5fb Fix the "no-commas" example code
It translated `<e:T?>` into `e?`, when it should've been `T?`.

`<e:T?>` is a nonterminal bound to the name, `T?` is a nonterminal bound to no name, and `e?` is meaningless.
2017-10-01 21:25:10 -07: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