forked from AbleScript/ablescript
Removed unused tokens from Lexer
Uh, they were lying there with no use for 9 months!
This commit is contained in:
parent
0615091b3c
commit
d1f18be279
|
@ -26,9 +26,6 @@ pub enum Token {
|
|||
#[token(";")]
|
||||
Semicolon,
|
||||
|
||||
#[token(".")]
|
||||
Dot,
|
||||
|
||||
#[token(",")]
|
||||
Comma,
|
||||
|
||||
|
@ -124,10 +121,6 @@ pub enum Token {
|
|||
#[regex("always|sometimes|never", get_abool)]
|
||||
Abool(Abool),
|
||||
|
||||
/// Base52 based character ('a')
|
||||
#[token("'.*'")]
|
||||
Char,
|
||||
|
||||
/// String
|
||||
#[regex("\"(\\.|[^\"])*\"", get_string)]
|
||||
String(String),
|
||||
|
|
|
@ -95,7 +95,6 @@ impl<'source> Parser<'source> {
|
|||
)),
|
||||
|
||||
Token::Identifier(_)
|
||||
| Token::Char
|
||||
| Token::String(_)
|
||||
| Token::Integer(_)
|
||||
| Token::Abool(_)
|
||||
|
@ -496,7 +495,6 @@ impl<'source> Parser<'source> {
|
|||
match self.checked_next()? {
|
||||
Token::Plus
|
||||
| Token::Minus
|
||||
| Token::Dot
|
||||
| Token::Comma
|
||||
| Token::LeftBracket
|
||||
| Token::RightBracket
|
||||
|
|
Loading…
Reference in a new issue