From fedb775fbb127a5099f46078c85046440479b0ef Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 22 Nov 2011 16:12:23 +0100 Subject: Add hacks to extract and compile tutorial code Not included in the build by default, since it's fragile and kludgy. Do something like this to run it: cd doc/tutorial RUSTC=../../build/stage2/bin/rustc bash test.sh Closes #1143 --- src/comp/syntax/parse/parser.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/comp/syntax') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 8d7a3bcc414..e33572d4575 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2485,22 +2485,12 @@ fn parse_crate_directive(p: parser, first_outer_attr: [ast::attribute]) -> _ { none } }; alt p.peek() { - - - - - // mod x = "foo.rs"; token::SEMI. { let hi = p.get_hi_pos(); p.bump(); ret spanned(lo, hi, ast::cdir_src_mod(id, file_opt, outer_attrs)); } - - - - - // mod x = "foo_dir" { ...directives... } token::LBRACE. { p.bump(); -- cgit 1.4.1-3-g733a5