Add Input class to take repeated code from Parser and Tokenizer