lang: current state idk try to parallelize

This commit is contained in:
Schrottkatze 2024-06-10 09:47:48 +02:00
parent 3e2c5946c8
commit 37651a83bc
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
11 changed files with 522 additions and 15 deletions

View file

@ -0,0 +1,17 @@
use std::path::PathBuf;
use crate::lst_parser::error::SyntaxError;
use super::files::FileId;
#[derive(Debug)]
pub enum Error {
Syntax(FileId, SyntaxError),
FailedToOpenFileMod(PathBuf, std::io::Error),
}
impl Error {
pub fn from_syntax(file: FileId, e: SyntaxError) -> Self {
Self::Syntax(file, e)
}
}