Refactoring: parser position and state.