Updated bootstrap

This commit is contained in:
2026-07-09 10:26:06 +02:00
parent e3c9657b07
commit be68f93038
2 changed files with 14 additions and 14 deletions
+8 -8
View File
@@ -19,19 +19,19 @@ use mist_parser::rev_mapper;
#[derive(Debug, Clone)]
pub struct MistDiagnosticMessage
{
pub String message,
pub PathBuf file_path,
pub String file_name,
pub usize line,
pub usize column,
pub String message;
pub PathBuf file_path;
pub String file_name;
pub usize line;
pub usize column;
}
#[derive(Debug, Clone)]
pub enum MistDiagnostic
{
Error(MistDiagnosticMessage),
Warning(MistDiagnosticMessage),
Rust(CompilerMessage),
Error(MistDiagnosticMessage);
Warning(MistDiagnosticMessage);
Rust(CompilerMessage);
}
pub bool build(Vec<String> mut args, PathBuf root)
+6 -6
View File
@@ -22,10 +22,10 @@ use serde::Deserialize;
#[serde(default)]
pub struct MistConfig
{
pub PathBuf package,
pub Vec<PathBuf> packages,
pub Vec<PathBuf> include,
pub mist_parser::MistFmtConfig fmt,
pub PathBuf package;
pub Vec<PathBuf> packages;
pub Vec<PathBuf> include;
pub mist_parser::MistFmtConfig fmt;
}
impl MistConfig
@@ -209,8 +209,8 @@ std::io::Result<bool> is_source_newer(Path& source, Path& output)
pub enum TranspileError<'a>
{
Parse(error::ParseError<'a>),
Semantic(Vec<mist_parser::semantics::SemanticError>),
Parse(error::ParseError<'a>);
Semantic(Vec<mist_parser::semantics::SemanticError>);
}
pub Result<(PathBuf, mist_codegen::RustCodegen, String), TranspileError<'a>> transpile_code<'a>(PathBuf& path, str 'a& source, PathBuf mut output_file, str& mod_decl, Option<(mist_parser::ast::Visibility, mist_parser::ast::Identifier)>& curr_mod_decl)