mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add "check" mode
Input::File(String) -> Input::file(PathBuf)
This commit is contained in:
parent
c1d92bc0f4
commit
9b0d66a63a
16 changed files with 200 additions and 184 deletions
|
@ -8,7 +8,8 @@ use std::thread;
|
|||
use erg_common::config::ErgConfig;
|
||||
use erg_common::traits::Runnable;
|
||||
|
||||
use erg_compiler::lower::ASTLowererRunner;
|
||||
use erg_compiler::check::Checker;
|
||||
use erg_compiler::lower::ASTLowerer;
|
||||
use erg_compiler::Compiler;
|
||||
|
||||
use erg_parser::lex::LexerRunner;
|
||||
|
@ -26,7 +27,10 @@ fn run() {
|
|||
ParserRunner::run(cfg);
|
||||
}
|
||||
"lower" => {
|
||||
ASTLowererRunner::run(cfg);
|
||||
ASTLowerer::run(cfg);
|
||||
}
|
||||
"check" => {
|
||||
Checker::run(cfg);
|
||||
}
|
||||
"compile" | "exec" => {
|
||||
Compiler::run(cfg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue