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

View File

@ -183,6 +183,12 @@ impl Repl {
println!("{}", item); println!("{}", item);
} }
}, },
"help" => {
println!("Commands:");
println!("exit | quit");
println!("lang [show|next|previous]");
println!("set [show|hide] [tokens|parse|eval|llvm]");
}
"lang" => { "lang" => {
match commands.get(1) { match commands.get(1) {
Some(&"show") => { Some(&"show") => {