提交 18180fd5 编写于 作者: P Paul Stansifer

"earley_parser" -> "macro_parser" Let's be less confusing.

上级 e54acbf8
......@@ -407,7 +407,7 @@ enum expr_ {
// If the syntax extension is an MBE macro, it will attempt to match its
// LHS "matchers" against the provided token tree, and if it finds a
// match, will transcribe the RHS token tree, splicing in any captured
// earley_parser::matched_nonterminals into the tt_nonterminals it finds.
// macro_parser::matched_nonterminals into the tt_nonterminals it finds.
//
// The RHS of an MBE macro is the only place a tt_nonterminal or tt_seq
// makes any real sense. You could write them elsewhere but nothing
......
......@@ -301,8 +301,8 @@ fn tt_args_to_original_flavor(cx: ext_ctxt, sp: span, arg: ~[ast::token_tree])
-> ast::mac_arg {
import ast::{matcher, matcher_, match_tok, match_seq, match_nonterminal};
import parse::lexer::{new_tt_reader, reader};
import tt::earley_parser::{parse_or_else, matched_seq,
matched_nonterminal};
import tt::macro_parser::{parse_or_else, matched_seq,
matched_nonterminal};
// these spans won't matter, anyways
fn ms(m: matcher_) -> matcher {
......
......@@ -5,8 +5,8 @@
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 earley_parser::{parse, parse_or_else, success, failure, named_match,
matched_seq, matched_nonterminal, error};
import macro_parser::{parse, parse_or_else, success, failure, named_match,
matched_seq, matched_nonterminal, error};
import std::map::hashmap;
import parse::token::special_idents;
......
import diagnostic::span_handler;
import ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident};
import earley_parser::{named_match, matched_seq, matched_nonterminal};
import macro_parser::{named_match, matched_seq, matched_nonterminal};
import codemap::span;
import parse::token::{EOF, INTERPOLATED, IDENT, token, nt_ident,
ident_interner};
......
......@@ -67,7 +67,7 @@ mod ext {
mod tt {
mod transcribe;
mod earley_parser;
mod macro_parser;
mod macro_rules;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册