Ajout de tests unitaires et réorganisation des fichiers

This commit is contained in:
2024-04-22 08:31:25 +02:00
parent f6091f3d2a
commit 5d5928d4ef
9 changed files with 219 additions and 66 deletions

View File

@@ -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() {