Updated api and analyzer with error recovery
This commit is contained in:
@@ -13,7 +13,7 @@ pub struct TranspiledFile {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum TranspileError<'a> {
|
pub enum TranspileError<'a> {
|
||||||
Parse(mist_parser::error::ParseError<'a, Vec<mist_parser::ast::TopLevel>>),
|
Parse(mist_parser::error::ParseError<'a>),
|
||||||
Semantic(Vec<mist_parser::semantics::SemanticError>),
|
Semantic(Vec<mist_parser::semantics::SemanticError>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ std::io::Result<bool> is_source_newer(Path& source, Path& output) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub enum TranspileError<'a> {
|
pub enum TranspileError<'a> {
|
||||||
Parse(error::ParseError<'a, Vec<mist_parser::ast::TopLevel>>),
|
Parse(error::ParseError<'a>),
|
||||||
Semantic(Vec<mist_parser::semantics::SemanticError>)
|
Semantic(Vec<mist_parser::semantics::SemanticError>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user