iowo/crates/lang/src/lst_parser/error.rs

16 lines
389 B
Rust
Raw Normal View History

use crate::lst_parser::syntax_kind::SyntaxKind;
2024-04-24 11:07:38 +02:00
#[derive(Debug, PartialEq, Eq, Clone)]
2024-04-24 11:07:38 +02:00
pub enum SyntaxError {
Expected(Vec<SyntaxKind>),
PipelineNeedsSink,
// if there was two space seperated items in a list
SpaceSepInList,
SemicolonInList,
2024-06-03 11:22:36 +02:00
CommaInMatOrVec,
UnterminatedTopLevelItem,
UnclosedModuleBody,
2024-06-03 12:05:38 +02:00
UnfinishedPath,
PathSepContainsSemicolon,
2024-04-24 11:07:38 +02:00
}