syntax: methodify the lexer

This commit is contained in:
Corey Richardson
2014-05-21 16:57:31 -07:00
parent 5343eb7e0c
commit 46d1af28b5
8 changed files with 1195 additions and 1187 deletions

View File

@@ -166,7 +166,7 @@ pub fn to_str(t: &Token) -> String {
ANDAND => "&&".to_string(),
BINOP(op) => binop_to_str(op).to_string(),
BINOPEQ(op) => {
let mut s = binop_to_str(op).to_strbuf();
let mut s = binop_to_str(op).to_string();
s.push_str("=");
s
}