[lexer] Add Quote token

This commit is contained in:
Eryn Wells 2018-09-08 11:16:53 -07:00
parent 30a876a3f9
commit 061868d2c2
4 changed files with 17 additions and 2 deletions

View file

@ -95,3 +95,10 @@ fn dot() {
assert_eq!(lex.next(), Some(Ok(Lex::new(Token::Dot, ".", 0, 0))));
assert_eq!(lex.next(), None);
}
#[test]
fn quote() {
let mut lex = Lexer::new("'".chars());
assert_eq!(lex.next(), Some(Ok(Lex::new(Token::Quote, "'", 0, 0))));
assert_eq!(lex.next(), None);
}