15 lines
242 B
Rust
15 lines
242 B
Rust
use std::ops::Range;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct Error {
|
|
pub kind: ErrorKind,
|
|
pub position: Range<usize>,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub enum ErrorKind {
|
|
SyntaxError(String),
|
|
EndOfTokenStream,
|
|
InvalidIdentifier,
|
|
}
|