1074 Commits

Author SHA1 Message Date
Markus Westerlind
b165fc939b fix: Avoid emitting redundant parentheses
Fixes #493
2020-02-28 20:08:15 +01:00
Niko Matsakis
de3360c0ee
Merge pull request #505 from HyeockJinKim/fix-link
Fix tutorial document link
2020-02-25 14:26:36 -05:00
Markus Westerlind
d2af4c4260
Merge pull request #504 from JustAPerson/update-regex
Update book to regex v1.0
2020-02-21 10:19:10 +01:00
HyeockJinKim
df662e6ddb Fix tutorial document link 2020-02-21 15:17:03 +09:00
Jason Priest
13b2e1911d Update book to regex v1.0
The v0.2 regex crate came out 3 years ago.
2020-02-20 18:25:55 -05:00
Tanuj
40e1c57dad Fix broken .md links in tutorial index page 2020-01-20 16:16:11 +05:30
Markus Westerlind
2951c6b78b
Merge pull request #500 from seanyoung/solang
Add Solang to the list of examples
2020-01-13 17:17:50 +01:00
Sean Young
adfcf74c62 Add Solang to the list of examples
Solang uses lalrpop for parsing Solidity.

Signed-off-by: Sean Young <sean@mess.org>
2020-01-13 15:47:51 +00:00
Markus Westerlind
5eda0670cb
Merge pull request #498 from wash2/master
enable byte-based regular expressions #229
2020-01-07 07:37:09 +01:00
Ashley Wulber
398f09443a use rust 1.36 in CI 2020-01-06 17:52:44 -05:00
Ashley Wulber
cae4e63b46 Merge branch 'master' of https://github.com/wash2/lalrpop 2020-01-06 17:49:06 -05:00
Ashley Wulber
f846b72f8c add newline 2020-01-06 17:46:22 -05:00
Markus Westerlind
25e88edfe9
Merge pull request #496 from Sosthene-Guedon/doc-improvement
Doc improvement
2020-01-06 23:17:14 +01:00
Markus Westerlind
e3f2c7f501
Merge pull request #486 from dkg/unicode-xid-update
depend on a more recent version of the unicode-xid crate
2020-01-06 23:10:34 +01:00
Ash Wulber
246cb071e9 remove .vscode dir 2020-01-05 22:12:37 -05:00
Ashley Wulber
cc21b04524 remove error messages for byte literals and byte-regex, and implement
methods as necessary
2020-01-05 15:34:32 -05:00
Sosthène Guédon
9b24aea506 Fix compiling with version 1.32.0 of rust 2019-12-27 21:32:04 +01:00
Sosthène Guédon
85c0547658 Add more explanations 2019-12-27 18:29:46 +01:00
Sosthène Guédon
bd08b3bb14 Fix style 2019-12-27 18:09:30 +01:00
Sosthène Guédon
ad1a4f8863 Add tutorial for tokens with references 2019-12-26 23:58:47 +01:00
Sosthène Guédon
16363051e6 Add example for tokens with lifetimes 2019-12-26 22:58:42 +01:00
Sosthène Guédon
f1a8e2bd67 Finish state parameter example 2019-12-26 21:57:59 +01:00
Sosthène Guédon
a8d82ccde1 Add example grammar for state parameter 2019-12-23 23:44:14 +01:00
Sosthène Guédon
df0c7f1a8d Add exemple for state parameters 2019-12-23 21:47:40 +01:00
Sosthène Guédon
847adbc5df Update summary 2019-12-23 21:45:56 +01:00
Markus Westerlind
669f883743
Merge pull request #487 from Michael-F-Bryan/module-visiblity
Update lalrpop_mod!() to match on any $vis pattern
2019-11-29 18:42:46 +01:00
Markus Westerlind
c531b74798
Merge pull request #489 from liigo/patch-1
fix Gleam grammar link
2019-11-20 10:34:21 +01:00
Liigo Zhuang
1e0df8f4d3
fix Gleam grammar link 2019-11-20 10:13:56 +08:00
Michael Bryan
ded43426c3
Update lalrpop_mod!() to match on any $vis pattern, not just pub or private 2019-11-02 17:37:22 +08:00
Daniel Kahn Gillmor
5abb222fbf try to make lalrpop depend on a more recent version of the unicode-xid crate 2019-10-22 20:21:15 -04:00
Markus Westerlind
4d7874dc9a
Merge pull request #482 from dmweis/patch-1
Fix typo
2019-09-17 02:53:40 -07:00
David Weis
4efeb134b0
Fix typo 2019-09-17 01:22:41 +01:00
Markus Westerlind
ad1e136003
Merge pull request #481 from guanqun/patch-1
Add link for issues
2019-09-16 11:57:47 -07:00
guanqun
9e7ae82505
Add link for issues
save one click for people :)
2019-09-16 23:48:11 +08:00
Markus Westerlind
7ccc0b6527
Merge pull request #479 from Marwes/0.17.2
Version 0.17.2
2019-08-21 22:10:09 +02:00
Markus Westerlind
7eb9261e1c Version 0.17.2 0.17.2 2019-08-21 21:07:59 +02:00
Markus Westerlind
b4a815cf8d
Merge pull request #473 from CreepySkeleton/mut
Add support for <mut x:X> allowing for mutable x in action code.
2019-08-21 20:08:54 +02:00
CreepySkeleton
87c22efb6e Document the contributing process 2019-08-21 19:24:15 +03:00
CreepySkeleton
14eeff42a5 Allow <mut name:E> in patterns 2019-08-21 19:24:15 +03:00
Ahmed Charles
2bd51e0888 Add support for <mut x:X> allowing for mutable x in action code.
Fixes #136.
2019-08-21 19:24:11 +03:00
CreepySkeleton
abbc3aff54 Add a link to gitter lobby
It's surprisingly hard to google it when you don't  know about it at all.
2019-07-09 17:31:14 +02:00
Markus Westerlind
f10b833634
Version 0.17.1 (#471) 2019-06-24 20:04:22 +02:00
Markus Westerlind
cba3a7463c
fix: Accept dyn Trait as a type (#469)
* refactor: Run rustfix

* fix: Accept `dyn Trait` as a type

Rust has started warning about trait objects without dyn on nightly.

* fix: Accept Fn(A, B) -> Type as a type

* Fixup `dyn Trait` and `dyn Fn()` in tests
2019-06-24 18:42:09 +02:00
Ivan Enderlin
57f72944e3 doc(api) Fix intern_token example (#468)
A very small fix. Thanks for the documentation!
2019-06-18 18:17:17 +02:00
Mr-Andersen
a879a3bd73 Added RustPython to README in Example Uses section 2019-06-12 12:52:18 +02:00
Markus Westerlind
8dd1631682
Version 0.17.0 (#462)
* Version 0.17.0

* Wait for lalrpop-util to be published
2019-05-08 10:16:49 +02: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
4cdf34f657 Apply rustfmt (#460)
* Apply rustfmt on all source files

* Condense wildcard suffixes

* Format macro matchers

* Normalize comments

* Fix semicolon placement
2019-05-04 20:00:57 +02:00
Jan Teske
d2476abed5 Fix Clippy warnings (#459)
* Remove `clone` calls from `Copy` types

This commit fixes code that triggered the clippy::clone_on_copy lint.

* Remove redundant field names in struct literals

This commit fixes code that triggered the clippy::redundant_field_names
lint.

* Remove unneeded `return` statements

This commit fixes code that triggered the clippy::needless_return lint.

* Remove unnecessary double parentheses

This commit fixes code that triggered the clippy::double_parens lint.

* Replace `while let` loops with `for` loops

This commit fixes code that triggered the clippy::while_let_on_iterator
lint.

* Remove needless if-else statement

This commit fixes code that triggered the clippy::needless_bool lint.

* Remove empty string from `writeln!` invocations

This commit fixes code that triggered the clippy::writeln_empty_string
lint.

* Remove redundant closures

This commit fixes code that triggered the clippy::redundant_closure
lint.

* Replace length comparisons with `is_empty`

This commit fixes code that triggered the clippy::len_zero lint.

* Remove 'static lifetime param on consts

This commit fixes code that triggered the clippy::const_static_lifetime
lint.

* Replace useless invocations of `format!`

This commit fixes code that triggered the clippy::useless_format lint.

* Remove needless lifetime params from functions

This commit fixes code that triggered the clippy::needless_lifetimes
and clippy::extra_unused_lifetimes lints.

* Replace wildcard field matches with `..`

This commit fixes code that triggered the clippy::unneeded_field_pattern
lint.

* Replace `<char> as u8` with byte literals

This commit fixes code that triggered the clippy::char_lit_as_u8 lint.

* Fix clippy warnings related to iterators

This commit fixes code that triggered the clippy lints:
 - for_kv_map
 - into_iter_on_ref
 - filter_next
 - iter_cloned_collect
 - unnecessary_fold

* Fix clippy warnings related to references

This commit fixes code that triggered the clippy lints:
 - match_ref_pats
 - trivially_copy_pass_by_ref
 - prt_arg
 - toplevel_ref_arg
 - op_ref

* Simplify `if` statements

This commit fixes code triggering the clippy lints:
 - collapsible_if
 - if_same_then_else

* Fix misc clippy warnings

This commit fixes code triggering the clippy lints:
 - write_with_newline
 - inconsistent_digit_grouping
 - range_plus_one
 - or_fun_call
 - assign_op_pattern
 - assertions_on_constants
2019-05-02 21:15:04 +02:00
Jan Teske
6350641977 Replace deprecated trim_left with trim_start (#458)
Now that our minimum supported Rust version is 1.31.0, we can make the
switch from `String::trim_left` (deprecated since 1.33.0) to
`String::trim_start`.

This also lets us get rid of the `allow(deprecated)` introduced as a
workaround for issue #428.
2019-05-01 00:34:57 +02:00