Ajout de tests unitaires et réorganisation des fichiers
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -1,13 +1,17 @@
|
||||
use std::env;
|
||||
use std::io::Write;
|
||||
//use std::io::Write;
|
||||
use std::process;
|
||||
|
||||
mod rlox;
|
||||
use crate::rlox::rlox_interpreter::RLoxInterpreter;
|
||||
mod rlox_interpreter;
|
||||
mod scanner;
|
||||
mod token;
|
||||
mod token_type;
|
||||
|
||||
use crate::rlox_interpreter::RLoxInterpreter;
|
||||
|
||||
// Exit codes from #include <sysexits.h>
|
||||
const EX_OK: i32 = 0;
|
||||
const EX_DATAERR: i32 = 65;
|
||||
//const EX_DATAERR: i32 = 65;
|
||||
const EX_USAGE : i32 = 66;
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user