Add help entry

Would like to make this generalizeable
This commit is contained in:
greg 2017-09-03 13:20:07 -07:00
parent 8dc8d15437
commit f3c8474c93
1 changed files with 6 additions and 0 deletions

View File

@ -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") => {