This repository has been archived on 2026-08-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
el-retired/ui/vessels/el-ui-compiler/src/error.rs
T

16 lines
347 B
Rust

use thiserror::Error;
pub type CompileResult<T> = Result<T, CompileError>;
#[derive(Debug, Error)]
pub enum CompileError {
#[error("lexer error at position {pos}: {msg}")]
Lex { pos: usize, msg: String },
#[error("parse error: {msg}")]
Parse { msg: String },
#[error("codegen error: {msg}")]
Codegen { msg: String },
}