diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-19 18:38:15 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-19 18:38:15 -0500 |
commit | ef4ada62f82ced8116e6ef64bdd773c275ea8195 (patch) | |
tree | ebd6e5c8c60510bf04998b7dccdb440883633763 /matrix-repl | |
parent | docs (diff) | |
download | matrix-ef4ada62f82ced8116e6ef64bdd773c275ea8195.tar.gz matrix-ef4ada62f82ced8116e6ef64bdd773c275ea8195.tar.bz2 matrix-ef4ada62f82ced8116e6ef64bdd773c275ea8195.zip |
things
Diffstat (limited to '')
-rw-r--r-- | matrix-bin/Cargo.lock (renamed from matrix-repl/Cargo.lock) | 0 | ||||
-rw-r--r-- | matrix-repl/Cargo.toml | 10 | ||||
-rw-r--r-- | matrix-repl/src/main.rs | 18 |
3 files changed, 0 insertions, 28 deletions
diff --git a/matrix-repl/Cargo.lock b/matrix-bin/Cargo.lock index f61fea6..f61fea6 100644 --- a/matrix-repl/Cargo.lock +++ b/matrix-bin/Cargo.lock diff --git a/matrix-repl/Cargo.toml b/matrix-repl/Cargo.toml deleted file mode 100644 index f1ec1d3..0000000 --- a/matrix-repl/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "matrix-repl" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -matrix = { path = "../matrix" } -rustyline = "13" diff --git a/matrix-repl/src/main.rs b/matrix-repl/src/main.rs deleted file mode 100644 index 9c3d5f6..0000000 --- a/matrix-repl/src/main.rs +++ /dev/null @@ -1,18 +0,0 @@ -use matrix::parse::Parser; - -fn main() { - - let mut rl = rustyline::DefaultEditor::new().unwrap(); - - loop { - let Ok(line) = rl.readline(">> ") else { - break; - }; - let ast = Parser::parse(line); - match ast { - Ok(ast) => println!("{ast:?}"), - Err(err) => println!("{err}") - } - } - -} |