feat(tokenizer): add Token::Int & UnexpectedToken error type

This commit is contained in:
Khaïs COLIN 2025-05-10 10:55:44 +02:00
parent faedfadeab
commit 71a9d82d96
Signed by: logistic-bot
SSH key fingerprint: SHA256:3zI3/tx0ZpCLHCLPmEaGR4oeYCPMCzQxXhXutBmtOAU
5 changed files with 24 additions and 6 deletions

View file

@ -1,6 +1,6 @@
use crate::meta_commands::{MetaCommand, MetaCommandExecuteResult};
use crate::statements::{Statement, StatementExecuteResult};
use crate::tokens::ScanError;
use crate::tokens::{ScanError, Token};
#[derive(Debug)]
pub enum Command {
@ -50,6 +50,7 @@ impl Command {
#[derive(Debug)]
pub enum CommandParseError {
Scan(ScanError),
UnexpectedToken(Token, &'static [&'static str]),
}
impl From<MetaCommand> for Command {