Mini tokenizer Implementation written in Haskell.