Updated bootstrap
This commit is contained in:
@@ -19,19 +19,19 @@ use mist_parser::rev_mapper;
|
|||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct MistDiagnosticMessage
|
pub struct MistDiagnosticMessage
|
||||||
{
|
{
|
||||||
pub String message,
|
pub String message;
|
||||||
pub PathBuf file_path,
|
pub PathBuf file_path;
|
||||||
pub String file_name,
|
pub String file_name;
|
||||||
pub usize line,
|
pub usize line;
|
||||||
pub usize column,
|
pub usize column;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum MistDiagnostic
|
pub enum MistDiagnostic
|
||||||
{
|
{
|
||||||
Error(MistDiagnosticMessage),
|
Error(MistDiagnosticMessage);
|
||||||
Warning(MistDiagnosticMessage),
|
Warning(MistDiagnosticMessage);
|
||||||
Rust(CompilerMessage),
|
Rust(CompilerMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub bool build(Vec<String> mut args, PathBuf root)
|
pub bool build(Vec<String> mut args, PathBuf root)
|
||||||
|
|||||||
@@ -22,10 +22,10 @@ use serde::Deserialize;
|
|||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct MistConfig
|
pub struct MistConfig
|
||||||
{
|
{
|
||||||
pub PathBuf package,
|
pub PathBuf package;
|
||||||
pub Vec<PathBuf> packages,
|
pub Vec<PathBuf> packages;
|
||||||
pub Vec<PathBuf> include,
|
pub Vec<PathBuf> include;
|
||||||
pub mist_parser::MistFmtConfig fmt,
|
pub mist_parser::MistFmtConfig fmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MistConfig
|
impl MistConfig
|
||||||
@@ -209,8 +209,8 @@ std::io::Result<bool> is_source_newer(Path& source, Path& output)
|
|||||||
|
|
||||||
pub enum TranspileError<'a>
|
pub enum TranspileError<'a>
|
||||||
{
|
{
|
||||||
Parse(error::ParseError<'a>),
|
Parse(error::ParseError<'a>);
|
||||||
Semantic(Vec<mist_parser::semantics::SemanticError>),
|
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)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user