Almost done porting tokenizer from TDOP by Doug Crockford