Pull out an interface for the lexer.

This commit is contained in:
Paul Stansifer
2012-05-30 11:36:30 -07:00
parent 473b1ec0a0
commit 32167f52b0
7 changed files with 285 additions and 247 deletions

View File

@@ -18,7 +18,7 @@ fn seq_sep_none() -> seq_sep {
}
fn token_to_str(reader: reader, ++token: token::token) -> str {
token::to_str(*reader.interner, token)
token::to_str(*reader.interner(), token)
}
// This should be done with traits, once traits work