Attempting numbers; tests are failing though :-(

This commit is contained in:
Eryn Wells 2016-12-26 18:23:58 -07:00
parent 9e3d4f155e
commit aba541ed4d
3 changed files with 93 additions and 11 deletions

View file

@ -2,17 +2,19 @@
* Eryn Wells <eryn@erynwells.me>
*/
#[derive(Debug)]
#[derive(PartialEq)]
use lexer::number::Number;
#[derive(PartialEq, Debug)]
pub enum Token {
LeftParen(String),
LeftVectorParen,
RightParen(String),
Boolean(bool),
Comment(String),
Dot,
Identifier(String),
Boolean(bool),
LeftParen(String),
LeftVectorParen,
Number(Number),
RightParen(String),
String(String),
Comment(String),
}
/// A Lex is a Token extracted from a specific position in an input. It contains useful information about the token's