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
Niko Matsakis
742fa61cae
tweak authorship and make the build-doc
script run on mac
2018-02-04 06:41:49 -05:00
Markus Westerlind
4b56c0497c
Merge pull request #302 from ahmedcharles/style
...
Remove unused re-export.
2018-02-02 23:03:29 +01:00
Ahmed Charles
399b63104e
Remove unused re-export.
2018-02-02 14:29:07 +00:00
Niko Matsakis
0737fad524
Merge pull request #299 from ahmedcharles/stringcache
...
Migrate from lalrpop-intern to string-cache.
2018-02-02 08:43:31 -05:00
Ahmed Charles
1a487a0ae6
Migrate from lalrpop-intern to string-cache.
...
Fixes #158 .
2018-01-31 12:14:17 +00: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
Niko Matsakis
50fb8a5d74
Merge pull request #293 from ahmedcharles/pubrestricted
...
Add support for pub(restricted).
2018-01-31 05:47:33 -05:00
Ahmed Charles
c1e75406c4
Add support for pub(restricted).
...
Fixes #256 .
2018-01-31 04:02:35 +00:00
Niko Matsakis
e037b57dd3
Merge pull request #297 from ahmedcharles/build
...
Fix cargo build for lalrpop-test.
2018-01-30 09:07:43 -05:00
Niko Matsakis
308d908718
Merge pull request #296 from ahmedcharles/rustfmt
...
Add rustfmt_skip attribute.
2018-01-30 09:06:32 -05:00
Niko Matsakis
6a48b9f070
Merge pull request #294 from ahmedcharles/pubmacro
...
Add error when macros are marked public.
2018-01-30 09:05:47 -05:00
Ahmed Charles
d7b244f309
Fix cargo build for lalrpop-test.
2018-01-27 00:35:25 +00:00
Ahmed Charles
f79fe093cc
Add rustfmt_skip attribute.
...
Fixes #233 .
2018-01-27 00:35:03 +00:00
Ahmed Charles
3341d915ed
Add error when macros are marked public.
...
Fixes #262 .
2018-01-27 00:33:59 +00:00