cleaning up tests, fixed compiler bug, found input parse bug

This commit is contained in:
gluax 2022-04-27 11:44:05 -07:00
parent 8275b63e57
commit 8c86407b91
414 changed files with 295 additions and 157 deletions

1
Cargo.lock generated
View File

@ -1265,6 +1265,7 @@ dependencies = [
"leo-compiler",
"leo-errors",
"leo-package",
"leo-span",
"notify",
"rand",
"rand_core",

View File

@ -46,6 +46,10 @@ version = "1.5.3"
path = "./leo/package"
version = "1.5.3"
[dependencies.leo-span]
path = "./leo/span"
version = "1.5.3"
[dependencies.snarkvm-utilities]
git = "https://github.com/AleoHQ/snarkVM.git"
rev = "51633e2"

View File

@ -34,16 +34,19 @@ version = "1.5.3"
path = "../parser"
version = "1.5.3"
[dependencies.leo-span]
[dev-dependencies.leo-span]
path = "../../leo/span"
version = "1.5.3"
[dependencies.sha2]
version = "0.10"
[dev-dependencies]
serde = { version = "1.0.136", features = ["derive"] }
serde_yaml = "0.8.23"
[dev-dependencies.serde]
version = "1.0.136"
features = ["derive"]
[dev-dependencies.serde_yaml]
version = "0.8.23"
[dev-dependencies.leo-test-framework]
path = "../../tests/test-framework"

View File

@ -31,7 +31,6 @@ use leo_errors::emitter::Handler;
use leo_errors::{CompilerError, Result};
pub use leo_passes::SymbolTable;
use leo_passes::*;
use leo_span::symbol::create_session_if_not_set_then;
use sha2::{Digest, Sha256};
use std::fs;
@ -143,6 +142,6 @@ impl<'a> Compiler<'a> {
/// Returns a compiled Leo program.
///
pub fn compile(&mut self, input_file_path: PathBuf) -> Result<(Option<ParsedInputFile>, SymbolTable<'_>)> {
create_session_if_not_set_then(|_| self.compiler_stages(input_file_path))
self.compiler_stages(input_file_path)
}
}

Some files were not shown because too many files have changed in this diff Show More