Make some unit tests for the lexer

This commit is contained in:
Eryn Wells 2016-12-25 14:20:25 -07:00
parent 7e784ffce1
commit 7f19c78127
2 changed files with 24 additions and 1 deletions

View file

@ -3,6 +3,7 @@
*/
#[derive(Debug)]
#[derive(PartialEq)]
pub enum Token {
LeftParen(String),
RightParen(String),
@ -15,7 +16,7 @@ pub enum Token {
/// place.
#[derive(Debug)]
pub struct Lex {
token: Token,
pub token: Token,
}
impl Lex {