-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from 0xKanekiKen/repl-tool
Implement Repl tool in Miden VM
- Loading branch information
Showing
6 changed files
with
353 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
mod compile; | ||
mod data; | ||
mod prove; | ||
mod repl; | ||
mod run; | ||
mod verify; | ||
|
||
pub use compile::CompileCmd; | ||
pub use data::InputFile; | ||
pub use prove::ProveCmd; | ||
pub use repl::ReplCmd; | ||
pub use run::RunCmd; | ||
pub use verify::VerifyCmd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::repl::start_repl; | ||
use structopt::StructOpt; | ||
|
||
#[derive(StructOpt, Debug)] | ||
#[structopt(name = "Repl", about = "Initiates the Miden REPL tool")] | ||
pub struct ReplCmd {} | ||
|
||
impl ReplCmd { | ||
pub fn execute(&self) -> Result<(), String> { | ||
// initiates repl tool. | ||
start_repl(); | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.