diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-05-22 10:54:12 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-07-02 18:30:12 -0700 |
| commit | f093d374edb89aedc940468d3d789dd95cec6347 (patch) | |
| tree | 8d9197ba35866b536c4a5ed8178f69387e4a69af /src/libsyntax/parse | |
| parent | 0b1edb7f0e25cae2a1f519af17bfc76682af0e14 (diff) | |
| download | rust-f093d374edb89aedc940468d3d789dd95cec6347.tar.gz rust-f093d374edb89aedc940468d3d789dd95cec6347.zip | |
rustc: Implement a new resolve pass behind a compile flag
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index a3d55df320b..9b36b77407e 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -1,7 +1,8 @@ /* Predicates on exprs and stmts that the pretty-printer and parser use */ -import ast_util::*; + +import ast_util::operator_prec; fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { alt e.node { diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0492ab27346..d1f19c3d47e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5,18 +5,21 @@ import token::{can_begin_expr, is_ident, is_plain_ident}; import codemap::{span,fss_none}; import util::interner; import ast_util::{spanned, respan, mk_sp, ident_to_path, operator_prec}; -import ast::*; import lexer::reader; import prec::{as_prec, token_to_binop}; import attr::parser_attr; import common::{seq_sep_trailing_disallowed, seq_sep_trailing_allowed, - seq_sep_none, token_to_str}; -import common::*;//{parser_common}; + seq_sep_none, token_to_str, parser_common}; import dvec::{dvec, extensions}; import vec::{push}; +import ast::*; export file_type; export parser; +export parse_expr; +export parse_pat; +export CRATE_FILE; +export SOURCE_FILE; // FIXME (#1893): #ast expects to find this here but it's actually // defined in `parse` Fixing this will be easier when we have export |
