Add locations to the parser