diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-22 16:12:23 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-22 16:12:23 +0100 |
| commit | fedb775fbb127a5099f46078c85046440479b0ef (patch) | |
| tree | 05f37967a75ab41a7a076ace9b36e79ffb26c6b1 /src/comp/syntax/parse | |
| parent | 1b8b0b8584a57ff60247cece73e273f94a245928 (diff) | |
| download | rust-fedb775fbb127a5099f46078c85046440479b0ef.tar.gz rust-fedb775fbb127a5099f46078c85046440479b0ef.zip | |
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
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 10 |
1 files changed, 0 insertions, 10 deletions
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(); |
