#[derive(Debug, Clone)]
pub struct CompileError {
pub message: String,
pub line: u32,
}
impl std::fmt::Display for CompileError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[line {}] compile error: {}", self.line, self.message)
}
}