Compare commits
No commits in common. "83537737f51c0c8c8a30fbb7979ac45edd175ec1" and "2ce863c899cb0de7ce7d31575ba864e0f8309382" have entirely different histories.
83537737f5
...
2ce863c899
@ -6,7 +6,6 @@ use std::iter::Peekable;
|
||||
use std::process::Command;
|
||||
use std::process::Stdio;
|
||||
use std::process::exit;
|
||||
use std::time::Instant;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
enum Token
|
||||
@ -217,17 +216,15 @@ fn compile(file_content: &String, intrinsics: &HashMap<&str, (Vec<Datatype>, Vec
|
||||
println!("---Done validating function calls---");
|
||||
typecheck(&operations, &functions, &intrinsics, &arrays, debug)?;
|
||||
println!("---Done typechecking---");
|
||||
let start = Instant::now();
|
||||
println!("---Starting to interpret the program---");
|
||||
let output = if interpret
|
||||
{
|
||||
println!("---Starting to interpret the program---");
|
||||
Some(interpret_program(&operations, &mut Vec::new(), &functions, &mut arrays, &intrinsics, debug)?)
|
||||
}
|
||||
else
|
||||
{
|
||||
None
|
||||
};
|
||||
println!("---Done after {:?}---", start.elapsed());
|
||||
if !interpret
|
||||
{
|
||||
if let Err(err) = generate_assembly_linux_x64(&operations, &functions, &intrinsics, &arrays, debug)
|
||||
|
Reference in New Issue
Block a user