Skip to content

Commit

Permalink
preliminary ratatui interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenfield committed Dec 6, 2024
1 parent 32ca908 commit 28b9324
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 9 deletions.
213 changes: 208 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ workspace = true
[dependencies.colored]
workspace = true

[dependencies.crossterm]
version = "0.28.1"

[dependencies.indexmap]
workspace = true

Expand All @@ -61,9 +64,15 @@ workspace = true
[dependencies.rand_chacha]
workspace = true

[dependencies.ratatui]
version = "0.29.0"

[dependencies.toml]
workspace = true

[dependencies.tui-input]
version = "0.11.1"

[dev-dependencies.leo-test-framework]
path = "../tests/test-framework"

Expand Down
4 changes: 2 additions & 2 deletions interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ impl Interpreter {
s,
source_file.start_pos,
)
.map_err(|_e| {
LeoError::InterpreterHalt(InterpreterHalt::new("failed to parse expression".into()))
.map_err(|e| {
LeoError::InterpreterHalt(InterpreterHalt::new(format!("Failed to parse expression: {e}")))
})?;
// TODO: This leak is silly.
let expr = Box::leak(Box::new(expression));
Expand Down
Loading

0 comments on commit 28b9324

Please sign in to comment.