From f3c8474c934fabdd057d1051379f55c88425e367 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 3 Sep 2017 13:20:07 -0700 Subject: [PATCH] Add help entry Would like to make this generalizeable --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 44ba4c2..904bbe0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -183,6 +183,12 @@ impl Repl { println!("{}", item); } }, + "help" => { + println!("Commands:"); + println!("exit | quit"); + println!("lang [show|next|previous]"); + println!("set [show|hide] [tokens|parse|eval|llvm]"); + } "lang" => { match commands.get(1) { Some(&"show") => {