Removed unused tokens from Lexer

Uh, they were lying there with no use for 9 months!
This commit is contained in:
Erin 2022-02-22 22:31:05 +01:00 committed by ondra05
parent 0615091b3c
commit d1f18be279
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