finalize implementation of Crockford tdop parser