Add position tracking mixin and parser context.