Use Objects for Token values
This commit is contained in:
parent
2f8051135f
commit
a5f88c221d
1 changed files with 7 additions and 7 deletions
|
@ -2,21 +2,21 @@
|
|||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
use sibiltypes::{Bool, Char, Number};
|
||||
use sibiltypes::Object;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum Token {
|
||||
Boolean(Bool),
|
||||
Character(Char),
|
||||
Comment(String),
|
||||
Boolean(Object),
|
||||
Character(Object),
|
||||
Comment(Object),
|
||||
Dot,
|
||||
Id(String),
|
||||
Id(Object),
|
||||
LeftParen,
|
||||
LeftVectorParen,
|
||||
Number(Number),
|
||||
Number(Object),
|
||||
Quote,
|
||||
RightParen,
|
||||
String(String),
|
||||
String(Object),
|
||||
}
|
||||
|
||||
/// A Lex is a Token extracted from a specific position in an input string. It contains useful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue