Update .program to .leo

This commit is contained in:
howardwu 2020-04-20 21:31:17 -07:00
parent 0cfcc8d55f
commit db4cea8967
5 changed files with 2 additions and 4 deletions

View File

@ -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)
}
}

View File

@ -12,5 +12,3 @@ extern crate lazy_static;
pub mod ast;
pub mod aleo_program;
// pub mod zokrates_program;

View File

@ -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");