diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-04 11:37:29 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-04 11:43:23 -0700 |
| commit | 8ff18acc8221a0157d94cd714b448b6a596fad40 (patch) | |
| tree | eb5182bca0d5687c5fb0c2e2b70897787a01515c /src/libsyntax/ext/tt | |
| parent | 3f92cf26594d1ddc9a4ff318b48c3b61ac233813 (diff) | |
| download | rust-8ff18acc8221a0157d94cd714b448b6a596fad40.tar.gz rust-8ff18acc8221a0157d94cd714b448b6a596fad40.zip | |
libsyntax: "import" -> "use"
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 20 | ||||
| -rw-r--r-- | src/libsyntax/ext/tt/macro_rules.rs | 18 | ||||
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 12 |
3 files changed, 25 insertions, 25 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index db96ce484be..22f588f98c5 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -1,16 +1,16 @@ // Earley-like parser for macros. -import parse::token; -import parse::token::{token, EOF, to_str, nonterminal}; -import parse::lexer::*; //resolve bug? +use parse::token; +use parse::token::{token, EOF, to_str, nonterminal}; +use parse::lexer::*; //resolve bug? //import parse::lexer::{reader, tt_reader, tt_reader_as_reader}; -import parse::parser::{parser,SOURCE_FILE}; +use parse::parser::{parser,SOURCE_FILE}; //import parse::common::parser_common; -import parse::common::*; //resolve bug? -import parse::parse_sess; -import dvec::DVec; -import ast::{matcher, match_tok, match_seq, match_nonterminal, ident}; -import ast_util::mk_sp; -import std::map::{hashmap, uint_hash}; +use parse::common::*; //resolve bug? +use parse::parse_sess; +use dvec::DVec; +use ast::{matcher, match_tok, match_seq, match_nonterminal, ident}; +use ast_util::mk_sp; +use std::map::{hashmap, uint_hash}; /* This is an Earley-like parser, without support for in-grammar nonterminals, only by calling out to the main rust parser for named nonterminals (which it diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 1fd2f880595..30b5d479f05 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -1,14 +1,14 @@ -import base::{ext_ctxt, mac_result, mr_expr, mr_def, expr_tt}; -import codemap::span; -import ast::{ident, matcher_, matcher, match_tok, +use base::{ext_ctxt, mac_result, mr_expr, mr_def, expr_tt}; +use codemap::span; +use ast::{ident, matcher_, matcher, match_tok, match_nonterminal, match_seq, tt_delim}; -import parse::lexer::{new_tt_reader, reader}; -import parse::token::{FAT_ARROW, SEMI, LBRACE, RBRACE, nt_matchers, nt_tt}; -import parse::parser::{parser, SOURCE_FILE}; -import macro_parser::{parse, parse_or_else, success, failure, named_match, +use parse::lexer::{new_tt_reader, reader}; +use parse::token::{FAT_ARROW, SEMI, LBRACE, RBRACE, nt_matchers, nt_tt}; +use parse::parser::{parser, SOURCE_FILE}; +use macro_parser::{parse, parse_or_else, success, failure, named_match, matched_seq, matched_nonterminal, error}; -import std::map::hashmap; -import parse::token::special_idents; +use std::map::hashmap; +use parse::token::special_idents; fn add_new_extension(cx: ext_ctxt, sp: span, name: ident, arg: ~[ast::token_tree]) -> base::mac_result { diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index f353eecb926..01e2328c85a 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -1,10 +1,10 @@ -import diagnostic::span_handler; -import ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident}; -import macro_parser::{named_match, matched_seq, matched_nonterminal}; -import codemap::span; -import parse::token::{EOF, INTERPOLATED, IDENT, token, nt_ident, +use diagnostic::span_handler; +use ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident}; +use macro_parser::{named_match, matched_seq, matched_nonterminal}; +use codemap::span; +use parse::token::{EOF, INTERPOLATED, IDENT, token, nt_ident, ident_interner}; -import std::map::{hashmap, box_str_hash}; +use std::map::{hashmap, box_str_hash}; export tt_reader, new_tt_reader, dup_tt_reader, tt_next_token; |
