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>
|
* Eryn Wells <eryn@erynwells.me>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use sibiltypes::{Bool, Char, Number};
|
use sibiltypes::Object;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum Token {
|
pub enum Token {
|
||||||
Boolean(Bool),
|
Boolean(Object),
|
||||||
Character(Char),
|
Character(Object),
|
||||||
Comment(String),
|
Comment(Object),
|
||||||
Dot,
|
Dot,
|
||||||
Id(String),
|
Id(Object),
|
||||||
LeftParen,
|
LeftParen,
|
||||||
LeftVectorParen,
|
LeftVectorParen,
|
||||||
Number(Number),
|
Number(Object),
|
||||||
Quote,
|
Quote,
|
||||||
RightParen,
|
RightParen,
|
||||||
String(String),
|
String(Object),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A Lex is a Token extracted from a specific position in an input string. It contains useful
|
/// 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