Make macro-system type and constructor names more uniform; more comments.

This commit is contained in:
Graydon Hoare
2012-07-27 19:14:46 -07:00
parent eabd233dcd
commit e11e90f31c
9 changed files with 230 additions and 194 deletions

View File

@@ -86,7 +86,7 @@ impl parser_common of parser_common for parser {
fn parse_ident() -> ast::ident {
alt copy self.token {
token::IDENT(i, _) { self.bump(); ret self.get_str(i); }
token::ACTUALLY(token::w_ident(*)) { self.bug(
token::INTERPOLATED(token::nt_ident(*)) { self.bug(
~"ident interpolation not converted to real token"); }
_ { self.fatal(~"expected ident, found `"
+ token_to_str(self.reader, self.token)