mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-01 22:36:52 +03:00
Update .program to .leo
This commit is contained in:
parent
0cfcc8d55f
commit
db4cea8967
@ -47,7 +47,7 @@ impl<'ast> Import<'ast> {
|
||||
|
||||
pub fn get_file(&self) -> String {
|
||||
let path = self.get_source().to_str().unwrap();
|
||||
format!("{}.program", path)
|
||||
format!("{}.leo", path)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -12,5 +12,3 @@ extern crate lazy_static;
|
||||
pub mod ast;
|
||||
|
||||
pub mod aleo_program;
|
||||
|
||||
// pub mod zokrates_program;
|
||||
|
@ -38,7 +38,7 @@ impl<F: Field + PrimeField> ConstraintSynthesizer<F> for Benchmark<F> {
|
||||
cs: &mut CS,
|
||||
) -> Result<(), SynthesisError> {
|
||||
// Read in file as string
|
||||
let unparsed_file = fs::read_to_string("simple.program").expect("cannot read file");
|
||||
let unparsed_file = fs::read_to_string("simple.leo").expect("cannot read file");
|
||||
|
||||
// Parse the file using langauge.pest
|
||||
let mut file = ast::parse(&unparsed_file).expect("unsuccessful parse");
|
||||
|
Loading…
Reference in New Issue
Block a user