feat(tokenizer): add Token::Int & UnexpectedToken error type
This commit is contained in:
parent
faedfadeab
commit
71a9d82d96
5 changed files with 24 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue