Make some unit tests for the lexer
This commit is contained in:
parent
7e784ffce1
commit
7f19c78127
2 changed files with 24 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue