1149 Commits

Author SHA1 Message Date
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
Bruce Mitchener
980114e9c1 Update rand dependency. 2018-03-05 20:53:02 +07:00
Bruce Mitchener
9a56cd6ae1 Update repo URLs in Cargo.toml now that there is an organization. 2018-03-05 13:06:40 +05:30
Niko Matsakis
ebc1e5049a
Merge pull request #327 from brendanzab/rustfmt
Run rustfmt on entire codebase
2018-03-02 12:06:31 -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
Niko Matsakis
5fc4be5186
Merge pull request #324 from Marwes/merge_variants
feat: De-duplicate symbol variants for parse tables
2018-02-22 19:35:47 -05:00
Niko Matsakis
670ded0f7e
Merge pull request #320 from dtkerr/master
fix error on parsing a single-quote char literal
2018-02-22 19:34:45 -05:00
Niko Matsakis
c429626e93
Merge pull request #318 from ahmedcharles/faster
Store the MatcherBuilder in the Parser.
2018-02-22 19:34:04 -05:00
Markus Westerlind
c61311dea2 feat: De-duplicate symbol variants for parse tables
This attempts to merge all symbol variants which would contain the same
type into one, letting us reduce the number of `pop_` functions being
generated.

Reduces the number of lines for `lrgrammar.lalrpop` from 67k to 57k
(a reduction of about 15%)
2018-02-20 00:01:20 +01:00
Terry Kerr
1d2fdca69c test to prevent regression on #307 2018-02-16 09:58:21 -05:00
Ahmed Charles
f4880a7571 Store the MatcherBuilder in the Parser. 2018-02-16 09:30:50 +00:00
Niko Matsakis
a32fc9ea85
Merge pull request #317 from ahmedcharles/parse
Change parse_X to XParser::parse.
2018-02-16 04:05:18 -05:00
Ahmed Charles
3f6bd2a00e Change parse_X to XParser::parse. 2018-02-15 10:25:29 +00:00
Niko Matsakis
61963ea715
Merge pull request #316 from ahmedcharles/method
Add MatcherBuilder, which stores regexes across multiple parses.
2018-02-15 04:15:32 -05:00
Anthony Deschamps
9e765a767e Correct a typo in the tutorial. 2018-02-14 01:06:41 -08:00
Niko Matsakis
9d7da79e1a
Merge pull request #306 from Marwes/reduce_table_size
perf: Use the minimum integer size necessary to represent states
2018-02-13 21:07:51 -05:00
Markus Westerlind
6bb178edc3 Clarify the max states calculation 2018-02-11 16:48:49 +01:00
Terry Kerr
1c79d90b33 fix error on parsing a single-quote char literal 2018-02-09 16:11:29 -05:00
Ahmed Charles
f5fe478da1 Add MatcherBuilder, which stores regexes across multiple parses. 2018-02-09 15:03:58 +00:00
Niko Matsakis
0c9f9025f7
Merge pull request #313 from lalrpop/publish
Add support for git tags when publishing.
2018-02-09 04:26:46 -05:00
Niko Matsakis
909aa7f944
Merge pull request #312 from lalrpop/ahmedcharles-toml
Add toml as the language for Cargo.toml example.
2018-02-09 04:25:00 -05:00
Niko Matsakis
2e51622995
Merge pull request #319 from Marwes/travis
Travis improvements
2018-02-09 04:15:34 -05: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
Markus Westerlind
f272dd071a Cast state integer to usize earlier to avoid overflow 2018-02-09 08:21:56 +01:00
Ahmed Charles
c1e49ff369 Add toml as the language for Cargo.toml example. 2018-02-08 03:58:44 +00:00
Ahmed Charles
d2f1d951bb Add support for git tags when publishing.
#220
2018-02-08 03:57:26 +00:00
Markus Westerlind
d52976e208
Merge pull request #314 from ahmedcharles/calc
Fix warning when building calculator.
2018-02-07 19:29:51 +01:00
Ahmed Charles
b4de8d47a0 Fix warning when building calculator. 2018-02-07 15:00:38 +00:00
Niko Matsakis
d740f500ba
Merge pull request #310 from lalrpop/deploy-book
move the setup instrutions out of README and into the book
2018-02-05 20:16:06 -05: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
aca46e73e2
Merge pull request #309 from ahmedcharles/tutorial
Fix the tutorial link.
2018-02-05 04:18:58 -05:00
Ahmed Charles
fce77223de Fix the tutorial link. 2018-02-05 05:40:32 +00:00
Markus Westerlind
bab2aa20c2 perf: Use the minimum integer size necessary to represent states 2018-02-04 15:34:27 +01:00
Markus Westerlind
63183f67c6 refactor: Remove some duplication from the reduce action 2018-02-04 14:54:58 +01:00
Niko Matsakis
4f0a7a6a49 upgrade version of mdbook to match what I have locally =) 2018-02-04 07:26:50 -05: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
Niko Matsakis
dedc9f5546
Merge pull request #298 from udoprog/mdbook
Convert documentation to mdbook format
2018-02-04 06:43:16 -05:00
Niko Matsakis
e71cbf8a22 comment the purpose of the build-doc script 2018-02-04 06:42:49 -05:00