added first code for parser extensions and moved some code in speedups around

--HG--
branch : trunk
15 files changed