shelly-shell 0.5.2

A Rust based Unix style shell with a typed and structured language syntax.

use crate::language::text::span::SourceSpan;


#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DiagnosticKind
{
    Incomplete,
    Invalid,
    Limit,
}


#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DiagnosticPhase
{
    Tokenizer,
    Parser,
}


#[derive(Clone, Debug, PartialEq, Eq)]
pub struct SourceDiagnostic
{
    pub span: SourceSpan,
    pub kind: DiagnosticKind,
    pub phase: DiagnosticPhase,
    pub message: String,
}