rust/src
bors 4e4e8cff16 Auto merge of #21452 - bleibig:bison-grammar, r=nikomatsakis
This adds a new lexer/parser combo for the entire Rust language can be generated with with flex and bison, taken from my project at https://github.com/bleibig/rust-grammar. There is also a testing script that runs the generated parser with all *.rs files in the repository (except for tests in compile-fail or ones that marked as "ignore-test" or "ignore-lexer-test"). If you have flex and bison installed, you can run these tests using the new "check-grammar" make target.

This does not depend on or interact with the existing testing code in the grammar, which only provides and tests a lexer specification.

OS X users should take note that the version of bison that comes with the Xcode toolchain (2.3) is too old to work with this grammar, they need to download and install version 3.0 or later.

The parser builds up an S-expression-based AST, which can be displayed by giving the "-v" argument to parser-lalr (normally it only gives output on error). It is only a rough approximation of what is parsed and doesn't capture every detail and nuance of the program.

Hopefully this should be sufficient for issue #2234, or at least a good starting point.
2015-01-24 22:14:14 +00:00
..
compiler-rt@58ab642c30 Updated compiler-rt 2015-01-09 18:38:30 +02:00
compiletest regex: Remove in-tree version 2015-01-23 21:04:10 -08:00
doc Auto merge of #21374 - dgrunwald:range-notation-fixes, r=nikomatsakis 2015-01-23 06:53:09 +00:00
driver Add allow(unstable) to driver.rs 2015-01-17 16:38:04 -08:00
etc rollup merge of #21289: brson/errorcodes 2015-01-21 09:13:46 -08:00
grammar Auto merge of #21452 - bleibig:bison-grammar, r=nikomatsakis 2015-01-24 22:14:14 +00:00
jemalloc@b001609960 update jemalloc 2014-10-05 22:17:25 -04:00
liballoc Beef up docs for Box<T> 2015-01-22 17:30:23 -05:00
libarena Set allow(unstable) in crates that use unstable features 2015-01-17 16:38:04 -08:00
libbacktrace
libcollections Rollup merge of #21484 - steveklabnik:connect_docs, r=alexcrichton 2015-01-22 18:10:00 -05:00
libcore Auto merge of #21488 - aturon:os-str, r=alexcrichton 2015-01-24 19:39:52 +00:00
libcoretest Auto merge of #21537 - tbu-:pr_coretest_fmt, r=alexcrichton 2015-01-24 07:45:55 +00:00
libflate Set allow(unstable) in crates that use unstable features 2015-01-17 16:38:04 -08:00
libfmt_macros Set allow(unstable) in crates that use unstable features 2015-01-17 16:38:04 -08:00
libgetopts rollup merge of #21457: alexcrichton/issue-21436 2015-01-21 09:20:35 -08:00
libgraphviz std: Rename Show/String to Debug/Display 2015-01-20 22:36:13 -08:00
liblibc Rollup merge of #21500 - richo:power-fixups, r=alexcrichton 2015-01-22 18:10:00 -05:00
liblog regex: Remove in-tree version 2015-01-23 21:04:10 -08:00
librand Fallout from stabilization. 2015-01-21 08:11:07 -08:00
librbml rollup merge of #21258: aturon/stab-3-index 2015-01-21 11:53:49 -08:00
librustc Auto merge of #21079 - huonw:chained-cmp-tweaks, r=pnkfelix 2015-01-24 17:07:43 +00:00
librustc_back Add the span of the operator itself to ast::BinOp. 2015-01-25 00:33:50 +11:00
librustc_bitflags std: Move the bitflags! macro to a gated crate 2015-01-17 10:51:07 -05:00
librustc_borrowck rollup merge of #21258: aturon/stab-3-index 2015-01-21 11:53:49 -08:00
librustc_driver rollup merge of #20179: eddyb/blind-items 2015-01-21 11:56:00 -08:00
librustc_llvm rollup merge of #21444: petrochenkov/null 2015-01-21 09:18:07 -08:00
librustc_privacy rustc: fix fallout of merging ast::ViewItem into ast::Item. 2015-01-21 16:27:26 +02:00
librustc_resolve More test fixes and rebase conflicts 2015-01-21 12:49:02 -08:00
librustc_trans Add the span of the operator itself to ast::BinOp. 2015-01-25 00:33:50 +11:00
librustc_typeck Add the span of the operator itself to ast::BinOp. 2015-01-25 00:33:50 +11:00
librustdoc Auto merge of #20221 - liigo:rustdoc-sidebar-tooltips-v3, r=alexcrichton 2015-01-23 02:53:50 +00:00
libserialize serialize: Remove base64 support 2015-01-23 21:03:54 -08:00
libstd Add ffi::OsString and OsStr 2015-01-24 10:21:30 -08:00
libsyntax Auto merge of #21079 - huonw:chained-cmp-tweaks, r=pnkfelix 2015-01-24 17:07:43 +00:00
libterm rollup merge of #21457: alexcrichton/issue-21436 2015-01-21 09:20:35 -08:00
libtest regex: Remove in-tree version 2015-01-23 21:04:10 -08:00
libunicode Fallout from stabilization. 2015-01-21 08:11:07 -08:00
llvm@b820135911 Redo Segmented stack support for DragonFly 2015-01-18 08:25:52 +01:00
rt rt: Remove libtime wrappers 2015-01-19 23:05:10 +09:00
rust-installer@e577c97b49 Fix revert of rust-installer 2015-01-09 10:19:30 -08:00
rustbook regex: Remove in-tree version 2015-01-23 21:04:10 -08:00
rustllvm Redo Segmented stack support for DragonFly 2015-01-18 08:25:52 +01:00
test Auto merge of #21079 - huonw:chained-cmp-tweaks, r=pnkfelix 2015-01-24 17:07:43 +00:00
snapshots.txt Register snapshot for 9006c3c 2015-01-20 22:15:44 +01:00