Building syntax tree using pure .net regex