Markus Westerlind
d50209b9cd
Update RELEASES.md for version 0.15.2
2018-04-28 12:28:06 +02:00
Markus Westerlind
dfd08d73a4
Merge pull request #355 from matklad/it-is-rust-and-not-c-plus-plus
...
Make semicolon after `}` in rules optional
2018-04-28 12:19:16 +02:00
Markus Westerlind
c223c1dbd7
Merge pull request #369 from psl8/master
...
Use hash to decide whether to recompile
2018-04-28 12:18:04 +02:00
Patrick Loughney
9a7b4d3453
Use hash to decide whether to recompile
...
Computes the SHA256 hash of the lalrpop file and compares it to a
comment in the generated Rust file
Closes #347
2018-04-26 23:58:49 -04:00
Markus Westerlind
b16795d155
chore: Commit Cargo.lock so 1.20 will build against string_cache 0.7.1
2018-04-26 23:49:22 +05:30
Markus Westerlind
d86c7cfdb8
Snapshot so lalrpop-snap gets compiled as a fast reduce function
2018-04-26 23:49:22 +05:30
Markus Westerlind
59b29acad4
Snapshot so lalrpop gets compiled as a fast reduce function
2018-04-26 23:49:22 +05:30
Markus Westerlind
f74f2915cf
Emit the reduce functions outside of reduce
...
Cleans up `reduce` and avoids a potential problem with type parameters
shadowing eachother.
2018-04-26 23:49:22 +05:30
Markus Westerlind
c16b851101
fix: Improve compile times by reducing the size of the reduce actions
2018-04-26 23:49:22 +05:30
David Tolnay
2694da775d
Clarify 0.15 upgrade instructions
...
The X in `parse_X` is not the same X as in `X::new()` -- for example in
my code I needed to go from `parse_Expr` to `ExprParser::new()`.
2018-04-09 11:03:23 +05:30
Niko Matsakis
7060a60d82
Merge pull request #361 from lalrpop/release/0.15.1
...
release 0.15.1
0.15.1
2018-04-05 04:31:42 -04:00
dylan_DPC
099827d55d
release 0.15.1
2018-04-04 23:42:51 +05:30
Niko Matsakis
f0847ceafd
Merge pull request #359 from matklad/caret-precedence
...
Correctly anchor regex at the begining
2018-04-04 13:47:51 -04:00
Aleksey Kladov
fa596a367a
Correctly anchor regex at the begining
...
^foo|bar is (^foo)|bar, and not ^(foo|bar). Adding parens should
fix it.
closes #358
2018-04-04 12:55:40 +03:00
Aleksey Kladov
74340d27eb
Make semicolon after }
in rules optional
2018-03-31 18:40:19 +03:00
Markus Westerlind
0d1d3b4cf2
Merge pull request #356 from 17cupsofcoffee/update-docs-for-0.15
...
Update docs for 0.15
2018-03-31 01:04:35 +02:00
Joe Clay
0eb0082a55
Update docs for 0.15
2018-03-30 20:31:00 +01:00
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
80ad5fc97c
Update the version of the tutorial examples as well
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
Niko Matsakis
550bd2d7cc
make a proper list
0.15.0
2018-03-22 13:38:37 -04:00
Markus Westerlind
108ef4805d
Merge pull request #345 from waywardmonkeys/update-itertools
...
Update itertools dep.
2018-03-22 16:43:10 +01:00
Bruce Mitchener
13c252d28a
Update itertools dep.
2018-03-22 22:11:18 +07: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
Bruce Mitchener
1780a84bd1
lalrpop-snap: Remove dependency on docopt, rustc-serialize.
...
These weren't used here and the dependencies are about to get
updated, so just remove them from here instead.
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
Markus Westerlind
75783eb507
Let the version.sh script work with CRLF
2018-03-18 12:57:25 +01:00
Markus Westerlind
662e925107
Updated RELEASES.md for 0.15
2018-03-18 12:52:33 +01:00
Niko Matsakis
8e2c3f5dda
Merge pull request #338 from Marwes/fix_rustfmt_attribute
...
fix: Allow lalrpop parsers to be used with include!
2018-03-18 06:06:28 -04:00
Niko Matsakis
72a63b3b6f
Merge pull request #337 from Marwes/stack_space
...
fix: Don't overflow the stack in parse table debug builds
2018-03-18 06:05:58 -04:00
Niko Matsakis
c9675c463e
Merge pull request #335 from Marwes/error_recovery_type
...
fix: Use the correct type for `!` in macro expanded productions
2018-03-18 06:02:26 -04: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
Markus Westerlind
c9fcd1f644
fix: Use the correct type for !
in macro expanded productions
2018-03-17 12:47:30 +01:00
Markus Westerlind
aa0a5db752
Update snapshot to receive stack reduction changes
2018-03-17 12:40:49 +01:00
Markus Westerlind
fcd1e4d9fe
Update lalrpop parsers to new lalrpop-snap
2018-03-17 12:40:49 +01:00
Markus Westerlind
5460ecd315
Update snapshot to get stack space fixes
2018-03-17 12:40:49 +01:00
Markus Westerlind
72b895127e
Add string_cache to lalrpop-snap
2018-03-17 12:40:48 +01:00
Markus Westerlind
fd225f876c
fix: Don't overflow the stack in parse table debug builds
...
This is somewhat "clever" code but it does have the net effect of
pushing each variant into their own function context which avoids
the stack overflow.
It is also easy to remove if a better solution is devised
2018-03-17 12:40:48 +01:00
Markus Westerlind
fbcce077fb
docs: Fix the link to travis
...
Before it would link to the image itself
2018-03-17 16:04:51 +05:30
Aleksey Kladov
df1b9c73b5
Add real-life examples to README
2018-03-14 01:37:25 +05:30
Markus Westerlind
8034f3dacc
Merge pull request #331 from Phlosioneer/patch-1
...
Fix typo in 002_paren_numbers.md
2018-03-08 09:56:58 +01:00
Phlosioneer
8b35e24b1a
Fix typo in 002_paren_numbers.md
2018-03-08 03:25:15 -05:00
Markus Westerlind
70700a95ab
Merge pull request #330 from waywardmonkeys/update-unicode-xid
...
Update to unicode-xid 0.1
2018-03-07 22:11:22 +01:00
Bruce Mitchener
db886aace8
Update to unicode-xid 0.1
2018-03-05 21:24:36 +07:00
Markus Westerlind
a352eb5a5a
Merge pull request #328 from waywardmonkeys/update-rand
...
Update rand dependency.
2018-03-05 15:11:55 +01:00