syntax: switch tt quoter to emit ~[tt], not tt.

This commit is contained in:
Graydon Hoare 2012-11-20 16:07:57 -08:00
parent ba01cd7fb0
commit 497a8b54b5
7 changed files with 76 additions and 36 deletions

View file

@ -1321,6 +1321,14 @@ impl Parser {
};
}
fn parse_all_token_trees() -> ~[token_tree] {
let tts = DVec();
while self.token != token::EOF {
tts.push(self.parse_token_tree());
}
tts.get()
}
fn parse_matchers() -> ~[matcher] {
// unification of matchers and token_trees would vastly improve
// the interpolation of matchers