Removed unused tokens from Lexer

Uh, they were lying there with no use for 9 months!
pull/5/head
ondra05 2022-02-22 22:31:05 +01:00
parent 41db71cb81
commit 9a93202979
2 changed files with 0 additions and 9 deletions

View File

@ -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),

View File

@ -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