fix column/line calculators to use previous pos, store a list of parser globals in a nice object