Print tokeniziation

This commit is contained in:
greg 2016-01-06 22:52:48 -08:00
parent 13cde3106c
commit 5ca98c7d77
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ impl ReplState for InterpreterState {
fn repl_handler(input: &str, state: &mut InterpreterState) -> String {
if state.show_tokens {
println!("Not implemented")
println!("Tokens: {:?}", tokenize(input));
}
if state.show_parse {
@ -65,5 +65,5 @@ fn repl_handler(input: &str, state: &mut InterpreterState) -> String {
let tokens = tokenize(input);
let ast = parse(&tokens);
format!("Changing how parsing works again")
format!("{:?}", tokens)
}