Initial tokenizer code (untested)