From 4e72c5204f04b9f0cef81735eacb67ba3ae653dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Tue, 16 Oct 2018 20:34:00 +0200 Subject: [PATCH] Basic repl based on rustyline --- .gitignore | 1 + Cargo.toml | 1 + README.md | 2 +- src/main.rs | 51 +++++++++++++++++++++++++++++++++------------------ 4 files changed, 36 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 46e6418de..3050f18d2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__ **/*.pytest_cache .*sw* +.repl_history.txt diff --git a/Cargo.toml b/Cargo.toml index 5554deb92..2bd834312 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,4 @@ env_logger="0.5.10" clap = "2.31.2" rustpython_parser = {path = "parser"} rustpython_vm = {path = "vm"} +rustyline = "2.1.0" diff --git a/README.md b/README.md index 36ba0212c..df2ec53cc 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Or use the interactive shell: $ cargo run Welcome to rustpython - >>>>> 2+2 + >>> 2+2 4