mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 10:01:40 +03:00
cleaning up tests, fixed compiler bug, found input parse bug
This commit is contained in:
parent
8275b63e57
commit
8c86407b91
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1265,6 +1265,7 @@ dependencies = [
|
|||||||
"leo-compiler",
|
"leo-compiler",
|
||||||
"leo-errors",
|
"leo-errors",
|
||||||
"leo-package",
|
"leo-package",
|
||||||
|
"leo-span",
|
||||||
"notify",
|
"notify",
|
||||||
"rand",
|
"rand",
|
||||||
"rand_core",
|
"rand_core",
|
||||||
|
@ -46,6 +46,10 @@ version = "1.5.3"
|
|||||||
path = "./leo/package"
|
path = "./leo/package"
|
||||||
version = "1.5.3"
|
version = "1.5.3"
|
||||||
|
|
||||||
|
[dependencies.leo-span]
|
||||||
|
path = "./leo/span"
|
||||||
|
version = "1.5.3"
|
||||||
|
|
||||||
[dependencies.snarkvm-utilities]
|
[dependencies.snarkvm-utilities]
|
||||||
git = "https://github.com/AleoHQ/snarkVM.git"
|
git = "https://github.com/AleoHQ/snarkVM.git"
|
||||||
rev = "51633e2"
|
rev = "51633e2"
|
||||||
|
@ -34,16 +34,19 @@ version = "1.5.3"
|
|||||||
path = "../parser"
|
path = "../parser"
|
||||||
version = "1.5.3"
|
version = "1.5.3"
|
||||||
|
|
||||||
[dependencies.leo-span]
|
[dev-dependencies.leo-span]
|
||||||
path = "../../leo/span"
|
path = "../../leo/span"
|
||||||
version = "1.5.3"
|
version = "1.5.3"
|
||||||
|
|
||||||
[dependencies.sha2]
|
[dependencies.sha2]
|
||||||
version = "0.10"
|
version = "0.10"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies.serde]
|
||||||
serde = { version = "1.0.136", features = ["derive"] }
|
version = "1.0.136"
|
||||||
serde_yaml = "0.8.23"
|
features = ["derive"]
|
||||||
|
|
||||||
|
[dev-dependencies.serde_yaml]
|
||||||
|
version = "0.8.23"
|
||||||
|
|
||||||
[dev-dependencies.leo-test-framework]
|
[dev-dependencies.leo-test-framework]
|
||||||
path = "../../tests/test-framework"
|
path = "../../tests/test-framework"
|
||||||
|
@ -31,7 +31,6 @@ use leo_errors::emitter::Handler;
|
|||||||
use leo_errors::{CompilerError, Result};
|
use leo_errors::{CompilerError, Result};
|
||||||
pub use leo_passes::SymbolTable;
|
pub use leo_passes::SymbolTable;
|
||||||
use leo_passes::*;
|
use leo_passes::*;
|
||||||
use leo_span::symbol::create_session_if_not_set_then;
|
|
||||||
|
|
||||||
use sha2::{Digest, Sha256};
|
use sha2::{Digest, Sha256};
|
||||||
use std::fs;
|
use std::fs;
|
||||||
@ -143,6 +142,6 @@ impl<'a> Compiler<'a> {
|
|||||||
/// Returns a compiled Leo program.
|
/// Returns a compiled Leo program.
|
||||||
///
|
///
|
||||||
pub fn compile(&mut self, input_file_path: PathBuf) -> Result<(Option<ParsedInputFile>, SymbolTable<'_>)> {
|
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
Loading…
Reference in New Issue
Block a user