25 Commits

Author SHA1 Message Date
Markus Westerlind
3173a41090 Only build mdbook on stable to fix CI 2020-08-05 15:57:37 +02:00
Markus Westerlind
037a37264c doc: Add the lexer feature to the examples
The lexer feature bled into the examples due to `lalrpop-test` already
specifying it.

Fixes #513
2020-03-10 16:06:15 +01:00
Ashley Wulber
398f09443a use rust 1.36 in CI 2020-01-06 17:52:44 -05:00
Markus Westerlind
6088e99082
Update ena and fix new warnings (#461)
* Update ena and fix new warnings

* Bump minimum rust version to fix docopt
2019-05-06 23:25:19 +02:00
Jan Teske
9b5ec5fdb1 Ignore trailing commas in ExpectedDebug (#455)
* Ignore trailing commas in `ExpectedDebug`

rust-lang/rust/pull/59076 changed the multiline Debug representation to
always include a trailing comma. This change currently breaks our tests
on beta and nightly, since we use this Debug representation to compare
expected parsing output.

We cannot simply add the trailing commas to the expected output strings,
since that would break on older rustc versions we support. Instead, this
commit makes it so that all trailing commas are stripped before the
comparison.

This workaround can be removed once rust-lang/rust/pull/59076 reaches
our minimum supported rustc version.

* Bump minimum Rust version to 1.31.0

That's required by the current version rustc-demangle, which is a
dependency of mdbook.
2019-04-30 15:30:03 +02:00
Newton Ni
46434782bd Split apart UnrecognizedEOF error variant from UnrecognizedToken (#446)
* Split apart UnrecognizedEOF error variant from UnrecognizedToken

* Factor out fmt_expected function

* Initial attempt at fixing codegen

- Match on lookahead when returning error
- Use last fixed symbol as location of UnrecognizedEOF
- Use `Default::default()` when there are no fixed symbols (?)

* Initial implementation of finding latest optional location

* Fix UnrecognizedToken errors in `Some` test cases

* Fix UnrecognizedEOF test cases

* Fix parentheses around pattern error for 1.26 compatibility

* Add basic test for UnrecognizedEOF (and hopefully trigger Travis build)

* Fix emitted indentation and use travis_wait when testing
2019-03-25 13:35:58 +01:00
Markus Westerlind
5ee01e55a4 chore: Don't try to infer whether we are building in the lalrpop workspace
Instead we use --all-features to enable a special `test` feature to run tests with a freshly generated lrgrammar.rs. Since we also have a test to check that the saved lrgrammar.rs is identical to what lalrpop generates we should be ok with this approach.

Closes #436
2019-01-11 22:33:45 +01:00
Markus Westerlind
3ff1b4c45f feat: Don't depend on lalrpop-snap to compile lalrpop
To recompile the snapshot we can now pass the snapshot feature instead
of copying over to the (now removed) lalrpop-snap directory
2018-10-21 14:22:00 +02:00
Markus Westerlind
bfa20cd896 Fix travis by updating minimum rustc and doing cargo update 2018-08-29 00:04:57 +02:00
Markus Westerlind
24e3bde6e4 Cache cargo on travis 2018-02-09 08:22:50 +01:00
Markus Westerlind
060e3b5e53 Enable RUST_BACKTRACE on travis 2018-02-09 08:22:50 +01:00
Niko Matsakis
68787fb781 install mdbook on CI 2018-02-04 07:13:27 -05:00
Niko Matsakis
0624b5b357 disable CARGO_INCREMENTAL=0
Work around https://github.com/rust-lang/rust/issues/47803
2018-02-04 07:04:36 -05:00
Niko Matsakis
daad2e59d1 configure travis.yml to automatically build/deploy the book 2018-02-04 07:03:39 -05:00
Ahmed Charles
1a487a0ae6 Migrate from lalrpop-intern to string-cache.
Fixes #158.
2018-01-31 12:14:17 +00:00
Ahmed Charles
c1e75406c4 Add support for pub(restricted).
Fixes #256.
2018-01-31 04:02:35 +00:00
Ruud van Asseldonk
85e6cf4b3a put minimal supported Rust version in CI config 2017-04-19 20:14:18 +02:00
Niko Matsakis
fa31cf265c stop using test.sh and instead use cargo test --all 2017-04-03 05:54:43 -04:00
Markus Westerlind
c4c1e8439c chore: Add a small bash script to run all tests 2016-11-18 23:54:42 +01:00
Niko Matsakis
c1cdf0dac7 Fix travis.yml 2016-02-18 20:43:21 -05:00
Niko Matsakis
d97eb6292c Update .travis.yml 2016-02-17 20:42:10 -05:00
Niko Matsakis
942ef00e9d Build lalrpop-exe too 2016-02-14 20:48:32 -05:00
Niko Matsakis
a1f343039c add calculator tutorial to the travis config 2016-01-23 12:35:17 -05:00
Niko Matsakis
a5c54133a1 adjust travis config 2015-09-16 05:51:31 -04:00
Niko Matsakis
66fb6717b9 experimental travis config 2015-09-16 05:40:54 -04:00